objective c - Not able to extract a zipped file larger than 4 gb using zip archive ios -


i using ziparchive sdk unzip files. unzipopenfile call fails on files larger 4gb. please help.

i ran same problem , trying solve on couple of days. finally, solved it.

with instruction can unzip big files (even 8gb) in ios without problems.

this step-by-step instruction how solve it:

1) download objective-zip https://github.com/flyingdolphinstudio/objective-zip

2) download minizip https://github.com/nmoinvaz/minizip

3) take 4 files - ioapi.c, ioapi.h, unzip.c, unzip.h - minizip folder (which downloaded in step 2) , paste objective-zip/minizip folder (override files).

4) go objective-zip/objective-zip/zipfile.m , replace string

int err= unzlocatefile(_unzfile, [filenameinzip cstringusingencoding:nsutf8stringencoding], 1); 

to this

int err= unzlocatefile(_unzfile, [filenameinzip cstringusingencoding:nsutf8stringencoding], (unzfilenamecomparer)1); 

5) finally, add objective-zip project , happy unzipping! :)

now can unzip big files in ios. checked on 8gb-zip, works charm!

p.s.: developer of objective-zip update fix possible, instruction actual objective-zip 0.8.1 only.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -