Steven 5319c3c606 first commit | пре 2 година | |
---|---|---|
.. | ||
SSZipArchive | пре 2 година | |
LICENSE.txt | пре 2 година | |
README.md | пре 2 година |
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 and above, iOS 9 and above, tvOS 9 and above, macOS 10.9 and above, watchOS 2 and above.
In your Podfile:
pod 'SSZipArchive'
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.4.2 and higher or master)
In your Cartfile:
github "ZipArchive/ZipArchive"
Note: We are no longer releasing a Carthage pre-built package as of 2.2.3. Developers are encouraged to build one themselves.
SSZipArchive
and minizip
folders to your project.libz
and libiconv
libraries to your target.Security
framework 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)
SSZipArchive is protected under the MIT license and our slightly modified version of minizip-ng (formally minizip) 3.0.2 is licensed under the Zlib license.