ios - 应用程序在模拟器中完美运行,但在 iPod Touch 上运行时出现 "Undefined Symbols"错误

标签 ios objective-c

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

最佳答案

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

关于ios - 应用程序在模拟器中完美运行,但在 iPod Touch 上运行时出现 "Undefined Symbols"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17563114/

相关文章:

ios - 是否可以在设备方向更改时更改 Controller 内单个 View 的方向?

ios - UIImage 在静态单元格中的定位不正确

ios - SwiftUI - 如何将 EnvironmentObject 传递给 View 模型?

ios - 已弃用尝试访问非导航器对象上的属性 'userAgent'

ios - 在 UILongPressGestureRecognizer 中获取按下的时间

ios - 将配置文件添加到现有项目的新设备

ios - 无法在 IOS 中从 Facebook 获取笔记内容

objective-c - 战胜 "multiple methods named ' xxx :' found"错误

objective-c - 没有使用我的自定义 UIViewController 调用 ViewDidLoad

ios - 如果出现标签栏,则无法调整搜索结果 Controller View 底部内容插图