• Undefined symbols for architecture i386: "_deflate", referenced from:


    Undefined symbols for architecture i386:
      "_deflate", referenced from:
          PlatCompress(enumCompressOperation, CompressCookie*, void*, long) in         libMo.a(tlplatcompress.o)
      "_deflateEnd", referenced from:
          PlatCompress(enumCompressOperation, CompressCookie*, void*, long) in libMo.a(tlplatcompress.o)
      "_deflateInit_", referenced from:
          StartCompression(enumCompressOperation, unsigned char, long (*)(void*, void*, long), void*, void**) in libMo.a(tlplatcompress.o)
      "_deflateParams", referenced from:
          StartCompression(enumCompressOperation, unsigned char, long (*)(void*, void*, long), void*, void**) in libMo.a(tlplatcompress.o)
      "_inflate", referenced from:
          PlatCompress(enumCompressOperation, CompressCookie*, void*, long) in libMo.a(tlplatcompress.o)
      "_inflateEnd", referenced from:
          PlatCompress(enumCompressOperation, CompressCookie*, void*, long) in libMo.a(tlplatcompress.o)
      "_inflateInit_", referenced from:
          StartCompression(enumCompressOperation, unsigned char, long (*)(void*, void*,  long), void*, void**) in libMo.a(tlplatcompress.o)
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)




    遇到这样的错误 。是缺少libz.dylib文件。

    Xcode 7.0 之后要手动添加
    添加方法:

    1. Go to Build Phases >Link Binary with Librairies > + > Add other
    2. Once in the file selection window do “CMD”+Shift+G (Go to folder) and type /usr/lib/
    3. From /usr/lib you can add : libz.dylib and more…
    4. Compile and have fun

    is unavailable no availabel on ios (app extension) - use view controller

    Targers-->Build Settings-->Build Options--> Require Only App-Extension-Safe -->NO

  • 相关阅读:
    Test1
    排序之快速排序
    java注解
    排序之插入排序
    java IO之输出流——OutputStream
    java IO之输入流——InputStream
    行为模式之中介者
    行为模式之命令
    行为模式之职责链
    结构型模式总结
  • 原文地址:https://www.cnblogs.com/qingjoin/p/5227311.html
Copyright © 2020-2023  润新知