Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-02-2010, 02:07 PM   #51 (permalink)
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 622
Red face

Quote:
Originally Posted by nyu View Post
But I'm still having some error lines and don't know where did they come from. Here's a sample of an error I'm facing :
'"_unzCloseCurrentFile", referenced from:'
'-[ZipArchive UnzipFileTo: overWrite:] in ZipArchive.o'
The others are similar to this one.
Did you resolve this? I am seeing 16 errors of a similar nature when I try to build. Wasn't able to find any documentation on how to add the libraries to an existing project.
Here's what I tried:
1. Drag and drop of the minizip folder, ZipArchive.h and ZipArchive.mm to my existing project. Selected the following options:
* Selected - Copy items into destination group's folder (if needed)
* Reference Type: Relative to Enclosing Group.
* Create Folder References for any added folders
2. Added libz.1.2.3.dylib framework via Target > General > Linked Libraries

I'd sure appreciate any suggestions. Thanks.
DenVog is offline   Reply With Quote
Old 10-11-2010, 04:15 AM   #52 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 4
Default

Will this unzip and maintain directory hierarchy?
itzhero is offline   Reply With Quote
Old 10-11-2010, 08:39 AM   #53 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 792
Default

Quote:
Originally Posted by DenVog View Post
Did you resolve this? I am seeing 16 errors of a similar nature when I try to build. Wasn't able to find any documentation on how to add the libraries to an existing project.
Here's what I tried:
1. Drag and drop of the minizip folder, ZipArchive.h and ZipArchive.mm to my existing project. Selected the following options:
* Selected - Copy items into destination group's folder (if needed)
* Reference Type: Relative to Enclosing Group.
* Create Folder References for any added folders
2. Added libz.1.2.3.dylib framework via Target > General > Linked Libraries

I'd sure appreciate any suggestions. Thanks.
I added to my project, however with virtual folders (the yellow one) for the minizip package, thus the imports on ZipArchive.h had to be changed from "minizip/zip.h" to only "zip.h", maybe it helps.
nobre84 is offline   Reply With Quote
Old 10-29-2010, 01:35 AM   #54 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: California
Posts: 198
Default

Quote:
Originally Posted by linkmx View Post
Hi, quick question, is there any way to check if a file is protected so I can ask the user for a password?
hi,
did you ever figure this out? I'm stuck with the same issue.
__________________
Check out my apps:

Contacts Journal

Contacts Journal Lite

Contacts Journal - iPad Edition

Contact Notes

Also visit my Tumblr blog about iPhone development.
zulfishah is offline   Reply With Quote
Old 11-01-2010, 05:59 AM   #55 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 1
Exclamation AES 256 Support

Dear all,


Have any one tried to unzip with AES decryption?
prosector4 is offline   Reply With Quote
Old 01-05-2011, 10:06 AM   #56 (permalink)
lng
Registered Member
 
Join Date: Jul 2010
Posts: 10
Default

Is there a limit for number of files in the zip? I have 140K files in the zip and it only extract 8K of them.
lng is offline   Reply With Quote
Old 02-17-2011, 07:44 PM   #57 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 57
Default When updated in the App Store

I am currently using this method in my application, but just for information sakes. When a user downloads the app in the App Store, and uses the application and happens to download and unzip a few files. If an update for the application is released soon after, if the user downloads the update would their unzipped files remain or disappear?

Thanks,
Keyur Patel
__________________
kdp8791 is offline   Reply With Quote
Old 02-22-2011, 07:45 AM   #58 (permalink)
- U haz disappoint -
 
Join Date: Jan 2010
Location: Belgium
Posts: 487
Send a message via MSN to jNoxx Send a message via Skype™ to jNoxx
Default

I'm having major issues importing this ^_-
I tried the blog, but half of it is in japanese.
So when u download the library.

Import the 3 files into ur Xcode.

First error is the call in the ZipArchive with the include's.
So taht's fixed, but still 75 error's left. So can't use this.
Any experience, or guides on this?

Greets, Noxx
jNoxx is offline   Reply With Quote
Old 02-22-2011, 09:28 AM   #59 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 57
Default

Quote:
Originally Posted by jNoxx View Post
I'm having major issues importing this ^_-
I tried the blog, but half of it is in japanese.
So when u download the library.

Import the 3 files into ur Xcode.

First error is the call in the ZipArchive with the include's.
So taht's fixed, but still 75 error's left. So can't use this.
Any experience, or guides on this?

Greets, Noxx
Hey Noxx,

I am not able to tell where you having the problem, can you post here or send me a PM of a screenshot of the area you are experiencing problems?
__________________
kdp8791 is offline   Reply With Quote
Old 02-22-2011, 09:50 AM   #60 (permalink)
- U haz disappoint -
 
Join Date: Jan 2010
Location: Belgium
Posts: 487
Send a message via MSN to jNoxx Send a message via Skype™ to jNoxx
Default

yoyo,

I downloaded the project from somewhere else, who tried to implement it, that works like a charm, but have no idea yet, how to use it, well. where to find the documentation

Just trying to make simple zips, or dezip them

Greets.
Allways interested in ideas about this
jNoxx is offline   Reply With Quote
Old 02-22-2011, 11:09 AM   #61 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 57
Default

Quote:
Originally Posted by jNoxx View Post
yoyo,

I downloaded the project from somewhere else, who tried to implement it, that works like a charm, but have no idea yet, how to use it, well. where to find the documentation

Just trying to make simple zips, or dezip them

Greets.
Allways interested in ideas about this

This should help you.

PageName - ziparchive - One-sentence summary of this page. - Project Hosting on Google Code
__________________
kdp8791 is offline   Reply With Quote
Old 02-23-2011, 05:09 AM   #62 (permalink)
- U haz disappoint -
 
Join Date: Jan 2010
Location: Belgium
Posts: 487
Send a message via MSN to jNoxx Send a message via Skype™ to jNoxx
Default

Well, I will check again
Thanks anyways.

PS: got it to work, got rid of the warnings etc, by changing the deprecated etc.
I can unzip, but can't figure out how to ZIP.
Appreciate it

Last edited by jNoxx; 02-23-2011 at 05:38 AM.
jNoxx is offline   Reply With Quote
Old 04-12-2011, 06:38 AM   #63 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 74
Default

Quote:
Originally Posted by acsolu View Post
I've put the source code here: ziparchive - An Objective C class for zip/unzip on iPhone and Mac OSX - Google Project Hosting

I wrote a simple class for compressing and extracting files. It works depend on minizip, which is a open source zip format library. And it’s included in the attachment.

it's simple but meet my own requirement

The major class name is ZipArchive, it’s easy to use, you can declare a instance and call initialize functions, and then call addFileToZip or UnzipFileTo to finish compression or uncompression.

download the source here

for more detailed info, please visit my article
Hi,
Is there any way to zip multiple files in a single file?

Thanks in advance!
nuzhat is offline   Reply With Quote
Old 09-21-2011, 03:20 PM   #64 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 10
Default

Does anyone know what type of zip passwords/encryption this class supports? I am trying to unzip a password protected file created by command line like the following:
Code:
zip -e MyZipFileName file1.ext file2.ext etc...
ZipArchive.m is returning NO for success here:

Code:
else
			ret = unzOpenCurrentFilePassword( _unzFile, [_password cStringUsingEncoding:NSASCIIStringEncoding] );
        
		if( ret!=UNZ_OK )
		{
			[self OutputErrorMessage:@"Error occurs"];
			success = NO;
			break;
                }
I put a break point before the break and ret is equal to -102, which apparently is a param error. My UnzipFileTo call looks like this:
Code:
NSString *documentsPath=[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES) lastObject];
[zipArchive UnzipFileTo:documentsPath overWrite:YES];
I am thinking it's because of the password. Maybe a password added with another zip utility works? Anyone know?
gauze is offline   Reply With Quote
Old 09-21-2011, 03:58 PM   #65 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 10
Default

I sure feel stupid. My problem was that I was referencing the documents directory only and not with the zip file name appended for the UnzipOpenFile call... Long day
gauze is offline   Reply With Quote
Old 09-27-2011, 05:01 PM   #66 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 253
Default

Hello i deploy this code and thanks... works!! but i have a issue.. i try to unzip an file what i download from ftp this file is generate from a ddl in sqlserver.. now the weird is if i try to unzip this file dont happend anything.. but if i unzip this file in mi mac and zip again in mac and unzip whit this code works..

So.. i dont understand why i can unzip files made in mac and dont unzip the others.. any?
gunther is offline   Reply With Quote
Old 09-28-2011, 10:08 PM   #67 (permalink)
[[Brain alloc]init];
 
fhsjaagshs's Avatar
 
Join Date: Aug 2011
Location: New Jersey
Age: 15
Posts: 70
Default

Quote:
Originally Posted by gunther View Post
Hello i deploy this code and thanks... works!! but i have a issue.. i try to unzip an file what i download from ftp this file is generate from a ddl in sqlserver.. now the weird is if i try to unzip this file dont happend anything.. but if i unzip this file in mi mac and zip again in mac and unzip whit this code works..

So.. i dont understand why i can unzip files made in mac and dont unzip the others.. any?
Where are you getting the zip files???

I usually make them on my iPod (Jailbroken) and ssh them to computer and upload to ftp server. If the files are coming from windows, there is your problem.




Also, just wondering, how can I unzip a zip with a passcode???
fhsjaagshs is offline   Reply With Quote
Old 09-29-2011, 10:52 AM   #68 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 253
Default

Quote:
Originally Posted by fhsjaagshs View Post
Where are you getting the zip files???

I usually make them on my iPod (Jailbroken) and ssh them to computer and upload to ftp server. If the files are coming from windows, there is your problem.




Also, just wondering, how can I unzip a zip with a passcode???
I get the files from the ftp server... the weird is this files this library dont un zip but if i unzip manually and zip again in my mac, and unzip whit this library works.. :S so i dont know why.
gunther is offline   Reply With Quote
Old 10-04-2011, 07:53 PM   #69 (permalink)
[[Brain alloc]init];
 
fhsjaagshs's Avatar
 
Join Date: Aug 2011
Location: New Jersey
Age: 15
Posts: 70
Default

Quote:
Originally Posted by gunther View Post
I get the files from the ftp server... the weird is this files this library dont un zip but if i unzip manually and zip again in my mac, and unzip whit this library works.. :S so i dont know why.
Where are they originally made?
1. On Linux (your server, please tell me which linux distro)
2. On windows

There are slight nuance differences in the original zip source code (or perhaps the compilation might affect this)
fhsjaagshs is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 260
20 members and 240 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, DarkAn, HemiMG, iDifferent, IphoneSdk, jakerocheleau, JasonR, MACralik, NSeven, prchn4christ, Rudy, Speed
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:51 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0