ZipArchive is a simple utility class for zipping and unzipping files on iOS, macOS and tvOS.
The main release branch is configured to support Objective-C and Swift 3+.
SSZipArchive works on Xcode 7-11 and above, iOS 9-13 and above, tvOS 9 and above, macOS 10.9-10.15 and above, watchOS 2 and above.
In your Podfile:
You should define your minimum deployment target explicitly, like:
platform :ios, '9.0'
Recommended CocoaPods version should be at least CocoaPods 1.7.5.
Add a Swift Package reference to https://github.com/ZipArchive/ZipArchive.git (SSZipArchive 2.3.0 and higher or master)
In your Cartfile:
Note: We are no longer releasing a Carthage pre-built package as of 2.2.3. Developers are encouraged to build one themselves.
minizipfolders to your project.
libiconvlibraries to your target.
Securityframework to your target.
HAVE_INTTYPES_H HAVE_PKCRYPT HAVE_STDINT_H HAVE_WZAES HAVE_ZLIB $(inherited).
SSZipArchive requires ARC.
//Import "#import <ZipArchive.h>" for SPM/Carthage, and "#import <SSZipArchive.h>" for CocoaPods. // Create [SSZipArchive createZipFileAtPath:zipPath withContentsOfDirectory:sampleDataPath]; // Unzip [SSZipArchive unzipFileAtPath:zipPath toDestination:unzipPath];
//Import "import ZipArchive" for SPM/Carthage, and "import SSZipArchive" for CocoaPods. // Create SSZipArchive.createZipFileAtPath(zipPath, withContentsOfDirectory: sampleDataPath) // Unzip SSZipArchive.unzipFileAtPath(zipPath, toDestination: unzipPath)
|Last commit: 1 week ago|
Fixes: More header/import work to help ensure previous integrations continue to work after SPM support was added. (#617) (Thank you @CLJian)