我的应用在模拟器中运行正常,但我得到了
在设备上运行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
中,一切正常! 最佳答案
尝试包含libz。可能会有助于消除这些运行时链接程序错误。或者您需要在构建设置中指定链接器标志。