ZipArchive
github地址:https://github.com/ZipArchive
功能:解压缩文件
语言:C语言
注意:目前不支持CocoPods
添加步骤:
Manual
- Add
Main.h
andMain.m
to your project.//添加Main.h/Main.m到你的项目中 - Add the
minizip
folder to your project.//添加minzip文件到你的项目中 - Add the
libz
library to your target//添加libz.dylib动态库到你的项目中
问提:将Main.h/Main.m和minzip添加到项目工程以后,如果你有.pch文件,也就是预编译文件,command + B以后发现一些不知明的做错,其中我就记住了Could not build module 'Foundation'
解决:需要在.pch文件添加一句话#ifdef __OBJC__ #endif,然后将所有#import<>/#import ""都要放置到这句话的中间