bug描述如下:
Undefined symbols for architecture x86_64:
"_inflateInit2_", referenced from:
_ccInflateMemoryWithHint in ZipUtils.o
"_inflate", referenced from:
_ccInflateMemoryWithHint in ZipUtils.o
"_inflateEnd", referenced from:
_ccInflateMemoryWithHint in ZipUtils.o
"_gzopen", referenced from:
_ccInflateGZipFile in ZipUtils.o
"_gzread", referenced from:
_ccInflateGZipFile in ZipUtils.o
"_gzclose", referenced from:
_ccInflateGZipFile in ZipUtils.o
"_uncompress", referenced from:
_ccInflateCCZFile in ZipUtils.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决办法:选择targets->linked Frameworks and libraries,添加“Libz.dylib”