在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ZipArchive/ZipArchive开源软件地址(OpenSource Url):https://github.com/ZipArchive/ZipArchive开源编程语言(OpenSource Language):C 74.4%开源软件介绍(OpenSource Introduction):SSZipArchiveZipArchive is a simple utility class for zipping and unzipping files on iOS, macOS and tvOS.
Version 2.5.0+ Updates Minimum OS VersionsA key dependency of this project is the zlib library. zlib before version 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches according to CVE-2018-25032. zlib 1.2.12 is included in macOS 10.15+ (with latest security patches), iOS 15.5+, tvOS 15.4+, watchOS 8.4+. As such, these OS versions will be the new minimums as of version 2.5.0 of ZipArchive. If you need support for previous versions of ZipArchive for earlier OS support you can target an earlier version but know you will be using an unmaintained version of this library. We will not support versions of ZipArchive that use dependencies with known vulnerabilities. Installation and SetupThe main release branch is configured to support Objective-C and Swift 4+. SSZipArchive works on Xcode 12 and above, iOS 15.5 and above, tvOS 15.4 and above, macOS 10.15 and above, watchOS 8.4 and above. CocoaPodsIn your Podfile: You should define your minimum deployment target explicitly, like:
Recommended CocoaPods version should be at least CocoaPods 1.7.5. SPMAdd a Swift Package reference to https://github.com/ZipArchive/ZipArchive.git (SSZipArchive 2.4.2 and higher or master) CarthageIn your Cartfile: We do not release a Carthage pre-built package. Developers are encouraged to build one themselves. Manual
SSZipArchive requires ARC. UsageObjective-C//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]; Swift//Import "import ZipArchive" for SPM/Carthage, and "import SSZipArchive" for CocoaPods.
// Create
SSZipArchive.createZipFileAtPath(zipPath, withContentsOfDirectory: sampleDataPath)
// Unzip
SSZipArchive.unzipFileAtPath(zipPath, toDestination: unzipPath) LicenseSSZipArchive is protected under the MIT license and our slightly modified version of minizip-ng (formally minizip) 3.0.6 is licensed under the Zlib license. Acknowledgments
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论