美文网首页
第三方库“zip achieve”,报错:Undefined s

第三方库“zip achieve”,报错:Undefined s

作者: 随心吧 | 来源:发表于2017-03-15 14:07 被阅读363次
『导言』

今天,研究了下ZipArchive第三方压缩解压缩框架,拖入框架后出9个错误提示:

图,错误提示
  • 错误提示代码:
Undefined symbols for architecture x86_64:
  "_deflate", referenced from:
      _zipWriteInFileInZip in zip.o
      _zipCloseFileInZipRaw64 in zip.o
  "_deflateInit2_", referenced from:
      _zipOpenNewFileInZip4_64 in zip.o
  "_inflate", referenced from:
      _unzReadCurrentFile in unzip.o
  "_get_crc_table", referenced from:
      _unzOpenCurrentFile3 in unzip.o
      _zipOpenNewFileInZip4_64 in zip.o
  "_inflateEnd", referenced from:
      _unzCloseCurrentFile in unzip.o
  "_crc32", referenced from:
      _unzReadCurrentFile in unzip.o
      _zipWriteInFileInZip in zip.o
  "_deflateEnd", referenced from:
      _zipCloseFileInZipRaw64 in zip.o
  "_inflateInit2_", referenced from:
      _unzOpenCurrentFile3 in unzip.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
  • 重点:用zip achieve这个库需要导入libz.tdb
  • 方法一:

点击Project——>Targets——>``build phrase——>Linked frameworks and Libraries——>“+”——>搜索“libz.”---->双击“libz.tdb”——>command+R`

图.方法一添加过程
  • 方法二:

点击Project ——>Targets——>General——>Link binary with Library——>“+”——>搜索“libz.”---->双击“libz.tdb”——>command+R

图.方法二添加过程

相关文章

网友评论

      本文标题:第三方库“zip achieve”,报错:Undefined s

      本文链接:https://www.haomeiwen.com/subject/zsmlnttx.html