嗨,我在xcode中有此问题。

Undefined symbols for architecture i386:
      "_inflateInit_", referenced from:
          _decode_frame in libavcodec.a(pngdec.o)
      "_inflateEnd", referenced from:
          _decode_frame in libavcodec.a(pngdec.o)
      "_inflate", referenced from:
          _decode_frame in libavcodec.a(pngdec.o)
    ld: symbol(s) not found for architecture i386
    collect2: ld returned 1 exit status


在线我没有找到任何解决方案,有什么主意吗?谢谢

最佳答案

从苹果mailnglists

要使用这些例程,请在您的源代码中包含zlib.h,并在您的项目中包含libz.dylib。

或获取zlib:zlib.net

或获取CocoaPod:objective-zip

10-08 06:10