练手项目中需要用到ZipArchive,把源代码加上之后,编译报错如下:
例:
Undefined symbols for architecture x86_64:
"_crc32", referenced from:
_unzReadCurrentFile in unzip.o
_zipWriteInFileInZip in zip.o
-[ZipArchive addDataToZip:fileAttributes:newname:] in ZipArchive.o
…………………………
解决方法:
加上libz