我的应用程序在模拟器中运行良好,但我得到了
我在设备上运行时出现Undefined symbols for architecture armv7:
错误。我已经正确设置了所有证书,配置文件等,因为我可以在iPod Touch上从Xcode启动其他应用程序。 iPod touch是第三代运行iOS5.1。以下是具体的错误:
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框架。 任何帮助将不胜感激,谢谢! 〜Carpetfizz
编辑:刚刚投入libz.1.2.5.dylib
,一切正常!
答案 0 :(得分:4)
尝试包含libz。可能有助于使这些运行时链接器错误消失。或者您需要在构建设置中指定链接器标志。