0

我的应用程序在模拟器中运行良好,但 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,一切正常!

4

1 回答 1

4

尝试包含一个 libz。可能有助于消除这些运行时链接器错误。或者您需要在构建设置中指定链接器标志。

于 2013-07-10T05:43:34.587 回答