練手項(xiàng)目中需要用到ZipArchive,把源代碼加上之后,編譯報(bào)錯(cuò)如下:
例:
Undefined symbols for architecture x86_64:
"_crc32", referenced from:
_unzReadCurrentFile in unzip.o
_zipWriteInFileInZip in zip.o
-[ZipArchive addDataToZip:fileAttributes:newname:] in ZipArchive.o
…………………………
ZipArchive編譯警告
解決方法:
加上libz
libz