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
2
votes
2 answers

Installing SSZipArchive using cocoapods

I have tried to install SSZipArchive using Cocoapods, without success. I have several questions, and tried all solutions I found on StackOverflow to solve. Is Githut mandatory for installing this framework ? As told in the SSZipArchive webpage, I…
philippe
  • 1,877
  • 2
  • 20
  • 25
2
votes
1 answer

SSZiparchive simple unarchiving

I am building an app which downloads a bunch of data from a zip file. I downloaded the zipfile but want to extract the catalog which is a pdf file. I am using SSZipArchive but my code isn't working. I guess I'm not unzipping it correctly. My…
Andrew Ho
  • 618
  • 9
  • 21
2
votes
1 answer

How to unzip a zip file which contains multiple folders using ssziparchive?

I am trying to unzip a folder using ssziparchive lib I found at: https://github.com/soffes/ssziparchive. The code I used: NSString *documentsDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)…
Deep Arora
  • 1,900
  • 2
  • 24
  • 40
1
vote
1 answer

SSZipArchive fails to unzip Google Books epubs

My code executes this sequence: Epub download request Unzipping using SSZipArchive For example e-book from this link unzips successfully: https://www.z-epub.com/electronic-book/3633 E-book from Google Books however…
klaudas
  • 427
  • 5
  • 13
1
vote
1 answer

Error Domain=SSZipArchiveErrorDomain Code=-1 "failed to open zip file" UserInfo={NSLocalizedDescription=failed to open zip file}

_ = try? SSZipArchive.unzipFile(atPath: filePath, toDestination: downloadPath.absoluteString!, overwrite: true, password: nil, progressHandler: { log, info, count, total in print("file",log) …
achinthaishane
  • 77
  • 1
  • 2
  • 9
1
vote
0 answers

Unable to create password protected zip file using SSZipArchive

I am using SSZipArchive library to create password protected zip file. I have already done with unzip file where i didn't face any trouble. But when it's came to creation of zip file with password protection , it's not working at all. let filePath =…
1
vote
1 answer

Swift - How to know when the file is successfully download from url using FileManager.default.copyItem

I have a scenario in which i have to download a zip file from url and once download completed i need to unzip it in async fashion. Problem here is FileManager.default.copyItem takes sometime therefore i cannot immediately unzip the file. below is…
1
vote
3 answers

Unzip file using SSZipArchive not extracting zip file

I am downloading a zipped folder using AFNetworking library, file is downloading but when i am trying to Un zip that zip folder, it is not opening. On mac machine it is also not extracting on double click and by Archive…
psk
  • 162
  • 1
  • 13
1
vote
1 answer

SSZipArchive unzip from Url

I am using SSZipArchive to unzip files from a Url (http://www.colorado.edu/conflict/peace/download/peace.zip). For this I am using the function : SSZipArchive.unzipFile(atPath: path, toDestination: documentsPath, progressHandler: { Is it…
Nitish
  • 13,845
  • 28
  • 135
  • 263
1
vote
2 answers

Wrong charset of file names after unzip

I have the following problem: I extracted a zip file via SSZipArchive (in a Swift app) and there are some file names with "invalid" characters. I think the reason is that I zipped the files under Windows and so the names are now coded in ANSI. Is…
altralaser
  • 2,035
  • 5
  • 36
  • 55
1
vote
2 answers

Path to downloaded file with Alamofire4 (Swift3)

I download a zip file with Alamofire4 and unzip it with SSZipArchive but the unzip does not work. I am not sure if the path of the downloaded file is good with Alamofire. Here is the code: let destination: DownloadRequest.DownloadFileDestination = {…
Ludo
  • 743
  • 1
  • 10
  • 25
1
vote
0 answers

How to manually add SSZipArchive to my project

First off, I'm a Mac OSX newbie, both using and programming, but it's been thrust upon me. My project is moving along nicely, but I need to unzip a file, and it looks like SSZipArchive seems like the way to go. I want to manually add it to my…
Jonathan
  • 2,532
  • 3
  • 16
  • 16
1
vote
0 answers

SSZipArchive: Get filename of file being moved in one of the delegate methods (e.g zipArchiveShouldUnzipFileAtIndex)

I have a zip file that I'm going to unzip using SSZipArchive. But I don't want to unzip every file in the zip. I need only some of the file based on condition. I know the delegate method of SSZipArchive, i.e…
Ravi Sisodia
  • 776
  • 1
  • 5
  • 20
1
vote
1 answer

Xcode: Linker command error when installing frameworks

I'm trying to use the framework SSZipArchive. I tried to "install" it via cocoaPods (I couldn't make it) and, later, I tried via Carthage. I thought that the second option had had installed it, but It didn't. It gives me this error: Ld…
1
vote
0 answers

Open big files with SSZipArchive leads to crash

My app is crashing when I'm opening a .zip file and unzipping it with SSZipArchive. I think this happens due to memory pressure because it is not crashing when monitored by Instruments or executed by the debugger. Is there a chance to "slowly" unzip…
TomWayne
  • 230
  • 2
  • 11