Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best archiver library for iOS [closed]

Tags:

ios

zip

archive

tar

I'm looking for an archiver library to use in my iOS app (zip or other formats). What is the best library in terms of:

  1. How easy it is to include it in a iOS project
  2. Memory consumption
  3. Speed of unarchiving
  4. How stable it is
like image 231
andr111 Avatar asked Apr 25 '12 00:04

andr111


3 Answers

For file archive, until now I found these libraries

  • zipzap
  • SSZipArchive
  • Godzippa
  • ZipArchive
  • objective-zip
  • GZIP

(Naively sorted by todays 2013-04-16 github stars)

I only tried ZipArchive because I needed zip format and password protected archive creation. It seems to do the job pretty well until now.

like image 85
Pierre de LESPINAY Avatar answered Nov 10 '22 01:11

Pierre de LESPINAY


I used Objective Zip and it worked quite well on iOS4. Work with this library is easy as this:

ZipFile *zipFile= [[ZipFile alloc] initWithFileName:@"test.zip" mode:ZipFileModeCreate];
ZipWriteStream *stream= [zipFile writeFileInZipWithName:@"abc.txt" compressionLevel:ZipCompressionLevelBest];
[stream writeData:abcData];
[stream finishedWriting];

Unzipping is done in similar fashion.

I can recommend it, but I can not provide any comparison to others. You can see on the wiki also some other libraries, which are based on this one. I hope this will help you a little.

like image 32
Ondrej Peterka Avatar answered Nov 09 '22 23:11

Ondrej Peterka


ZipZap is the solution I find most appealing. It has the advantage of only depending on the zlib the SDK provides.

like image 32
orkoden Avatar answered Nov 10 '22 00:11

orkoden