『导言』
今天,研究了下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
网友评论