ZhaiYuLei c198e85bce 初始化 | %!s(int64=4) %!d(string=hai) anos | |
---|---|---|
.. | ||
SSZipArchive | %!s(int64=4) %!d(string=hai) anos | |
LICENSE.txt | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos |
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-10 and above, iOS 8-12 and above, tvOS 9 and above, macOS 10.8-10.14 and above, watchOS 2 and above.
In your Podfile:
pod 'SSZipArchive'
You should define your minimum deployment target explicitly, like:
platform :ios, '8.0'
CocoaPods version should be at least CocoaPods 1.6.0.
In your Cartfile:
github "ZipArchive/ZipArchive"
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 MZ_ZIP_NO_SIGNING $(inherited)
.SSZipArchive requires ARC.
// Create
[SSZipArchive createZipFileAtPath:zipPath withContentsOfDirectory:sampleDataPath];
// Unzip
[SSZipArchive unzipFileAtPath:zipPath toDestination:unzipPath];
// 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 1.2 is licensed under the Zlib license.