我的应用程序在模拟器中运行良好,但
Undefined symbols for architecture armv7:
在设备上运行时出现错误。我已经正确设置了所有证书、配置文件等,因为我能够在我的 iPod Touch 上从 Xcode 启动其他应用程序。iPod touch 是运行 iOS5.1 的第 3 代。以下是具体的错误:
Undefined symbols for architecture armv7:
"_inflate", referenced from:
_comp_method_zlib_decomp in NMSSH(comp.o)
"_deflate", referenced from:
_comp_method_zlib_comp in NMSSH(comp.o)
"_inflateEnd", referenced from:
_comp_method_zlib_dtor in NMSSH(comp.o)
"_deflateInit_", referenced from:
_comp_method_zlib_init in NMSSH(comp.o)
"_deflateEnd", referenced from:
_comp_method_zlib_dtor in NMSSH(comp.o)
"_inflateInit_", referenced from:
_comp_method_zlib_init in NMSSH(comp.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
如您所见,我使用的是 NMSSH 框架。任何帮助将不胜感激,谢谢!~地毯嘶嘶声
编辑:刚刚投入libz.1.2.5.dylib
,一切正常!