Questions tagged [ssziparchive]

ZipArchive is a simple utility class provided for zipping and unzipping files on iOS and Mac programmatically.

SSZipArchive ZipArchive is a simple utility class for zipping and unzipping files on iOS and Mac.

  • Unzip zip files
  • Unzip password protected zip files
  • Create new zip files
  • Append to existing zip files
  • Zip files
  • Zip-up NSData instances. (with a filename)

Project git repository

62 questions
10
votes
2 answers

How do you include SSZipArchive for IOS 5?

For the project I'm working on I needed to unzip certain files. For this, I found the library SSZipArchive. I included this in Xcode 4.2 (Right-click on the Classes folder->Add files to project, with in the dialogue the "Copy items into destination…
psgels
  • 737
  • 1
  • 6
  • 19
10
votes
1 answer

Error: You don’t have permission to save the file in the folder

I've successfully downloaded the file but I am unable to save the file. Because I keep getting the error(s): [SSZipArchive] Error: You don’t have permission to save the file “fileName” in the folder “Folder_Name”. [SSZipArchive] Error: You don’t…
14wml
  • 4,048
  • 11
  • 49
  • 97
9
votes
3 answers

Creating a ZIP file from a string in Swift

let data = "InPractiseThisWillBeAReheallyLongString" createDir() let docsDir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first! let ourDir =…
user2363025
  • 6,365
  • 19
  • 48
  • 89
8
votes
4 answers

Unzip files in swift

How to go about unzipping a file in swift? In Objective-C, I used SSZipArchive and I loved it. As seen in the code below. I suspect if I decide to keep SSZipArchive, I will have to bridge an Objective-C file to my Swift file. Is there any updated…
imnilly
  • 317
  • 2
  • 4
  • 10
6
votes
2 answers

Failed build b/c symbols not found zlib

I have a problem adding libs for zip extraction to my iPhone app. I decided to use SSZipArchive. It uses minizip. After following the instructions: 1 Add SSZipArchive.h, SSZipArchive.m, and minizip 2 Add the libz library to your target I…
Alex L
  • 8,419
  • 6
  • 43
  • 51
5
votes
3 answers

Unzipping files with SSZipArchive - Swift

I'm trying to unzip a file using the SSZipArchive framework. let unzipper = SSZipArchive.unzipFileAtPath(String(document), toDestination: String(documentsUrl)) This is what I'm trying at the moment to unzip the file, and here is the path of the…
jackchmbrln
  • 1,672
  • 2
  • 14
  • 26
4
votes
0 answers

How to add SSZipArchive (or any other zipping library) to swift project ios 7.1 manually? There is no module as SSZipArchive

I have gone through the git page of SSZipArchive as of how to add it to the project manually. But the error keeps popping up as "There is no module SSZipArchive" when "import SSZipArchive". Please tell me the steps to add SSZipArchive manually to a…
user1989040
  • 167
  • 3
  • 12
4
votes
1 answer

Can't load with NSData(contentsOfFile: file path) from mobile or simulator filesystem, but it works from OS X filesystem

I download a ZIP file containing an XML file. I unzip the file with SSZipArchive and safe the file in the app sandbox under the directory /library. For instance: /var/mobile/Containers/Data/Application/0A0091C2-7BC5-484F-BDBB-B2ABF305BB09/ The…
Tacitus
  • 41
  • 3
4
votes
2 answers

Lint a Swift cocoa pod with SSZipArchive dependency

Anyone had any luck creating a pod with a SSZipArchive dependency? My classes are all in Swift but I'm including my bridging file as well (#import "SSZipArchive"). When I try to lint I get 9 errors all related to SSZipArchive. Please let know your…
Marc Nunes
  • 238
  • 3
  • 13
3
votes
1 answer

Swift How to Unzip file from URL with Alamofire and SSZipArchive

func downLoad(fileName:String) { let urlString : String = "\(myurl)\(fileName)" var localPath: NSURL? let destination = DownloadRequest.suggestedDownloadDestination(for: .documentDirectory) Alamofire.download(urlString,…
Adam
  • 325
  • 1
  • 4
  • 20
3
votes
1 answer

Unzip a file using SSZipArchive not extracting the contents of the file

I am using SSZipArchive to extract the contents of the file, which I am downloading from the Internet and saving in Documents. The resources I am downloading is in the form of zip file, which I will be unzipping upon successfull download. @IBAction…
onkar
  • 4,427
  • 10
  • 52
  • 89
3
votes
0 answers

ssziparchive with password protection cannot unzip by normal Finder on Mac

I'm working on Xcode 7.2 and target device is iPhone 6 Plus. I use SSZipArchive from https://github.com/ZipArchive/ZipArchive when I zip with password protection and unzip by SSZipArchive, it work correctly. But the zip file cannot unzip by normal…
Pahol S.
  • 31
  • 4
3
votes
0 answers

Error adding SSZipArchive to a project in Xcode 5.1.1

I'm getting many errors trying to add it. Now is telling me this when compiling: "Semantic issue: conflicting types for 'time' in crypt.h" Implicit declaration of function 'time' in C99 Images (I can't post them):…
eiprol
  • 389
  • 1
  • 3
  • 14
2
votes
1 answer

How to properly add a third party framework to the ios part of a react-native project?

Hi I am quite new to react native and I'm trying to integrate a third party dynamic framework, SSZiparchive, but it doesn't work. I found conflicting awnsers online that suggested using use_modular_headers! instead of use_frameworks! in the pod…
txopen
  • 21
  • 3
2
votes
3 answers

SSZipArchive "failed to open zip file" -- url.path is not the solution

Edit 2: I tried Zip from marmelroy (https://github.com/marmelroy/Zip) and it failed on the zip-file created witch ZipArchive too. Then I created another zip-file with Zip and this one worked fine for unzipping. There seems to be a problem with…
tartsigam
  • 71
  • 1
  • 5
1
2 3 4 5