Latest 2.1.4
Homepage https://github.com/ZipArchive/ZipArchive
License MIT
Platforms ios 4.3, tvos 9.0, osx 10.8, watchos 2.0
Authors , ,

Build Status

ZipArchive is a simple utility class for zipping and unzipping files on iOS, macOS and tvOS.

  • Unzip zip files;
  • Unzip password protected zip files;
  • Unzip AES encrypted zip files;
  • Create zip files;
  • Create password protected zip files;
  • Create AES encrypted zip files;
  • Choose compression level;
  • Append to existing zip files;
  • Zip-up NSData instances. (with a filename)

Installation and Setup

The main release branch is configured to support Objective C and Swift 3+.

SSZipArchive works on Xcode 7-9 and above, iOS 8-11 and above.

CocoaPods

In your Podfile:
pod 'SSZipArchive'

Carthage

In your Cartfile:
github "ZipArchive/ZipArchive"

Manual

  1. Add the SSZipArchive and minizip folders to your project.
  2. Add the libz library to your target

SSZipArchive requires ARC.

Usage

Objective-C

// Create
[SSZipArchive createZipFileAtPath:zipPath withContentsOfDirectory:sampleDataPath];

// Unzip
[SSZipArchive unzipFileAtPath:zipPath toDestination:unzipPath];

Swift

// Create
SSZipArchive.createZipFileAtPath(zipPath, withContentsOfDirectory: sampleDataPath)

// Unzip
SSZipArchive.unzipFileAtPath(zipPath, toDestination: unzipPath)

License

SSZipArchive is protected under the MIT license and our slightly modified version of Minizip 1.2 is licensed under the Zlib license.

Acknowledgments

  • Big thanks to aish for creating ZipArchive. The project that inspired SSZipArchive.
  • Thank you @soffes for the actual name of SSZipArchive.
  • Thank you @randomsequence for implementing the creation support tech.
  • Thank you @johnezang for all his amazing help along the way.

Latest podspec

{
    "name": "SSZipArchive",
    "version": "2.1.4",
    "summary": "Utility class for zipping and unzipping files on iOS, tvOS, watchOS, and macOS.",
    "description": "SSZipArchive is a simple utility class for zipping and unzipping files on iOS, tvOS, watchOS, and macOS.",
    "homepage": "https://github.com/ZipArchive/ZipArchive",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "Sam Soffes": "[email protected]",
        "Joshua Hudson": null,
        "Antoine Cu0153ur": null
    },
    "source": {
        "git": "https://github.com/ZipArchive/ZipArchive.git",
        "tag": "v2.1.4"
    },
    "platforms": {
        "ios": "4.3",
        "tvos": "9.0",
        "osx": "10.8",
        "watchos": "2.0"
    },
    "source_files": [
        "SSZipArchive/*.{m,h}",
        "SSZipArchive/minizip/*.{c,h}",
        "SSZipArchive/minizip/aes/*.{c,h}"
    ],
    "public_header_files": "SSZipArchive/*.h",
    "pod_target_xcconfig": {
        "DEFINES_MODULE": "YES"
    },
    "libraries": "z"
}

Pin It on Pinterest

Share This