nicolasgomollon / ZIPArchive

A cleaned up and modernized fork of ZipArchive by Aish, a class to simplify compressing and decompressing ZIP files in Objective-C.
MIT License
0 stars 1 forks source link

Problems trying to add the libz.1.2.3.dylib #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a project.
2. Add the ZipArchive folder with their files.
3. Add the libz.1.2.3.dylib

What is the expected output? What do you see instead?
I have all the code (about ziparchive) commented, so i only have the #import 
"ZipArchive/ZipArchive.h" in my viewcontroller, and i expect to build the 
project without errors.

I see the following error in the compiler:

ld: warning: ignoring file 
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2/Symbols/usr/lib/libSyst
em.dylib, missing required architecture i386 in file
ld: in 
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2/Symbols/usr/lib/libobjc
.A.dylib, missing required architecture i386 in file for architecture i386
collect2: ld returned 1 exit status
Command 
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 
failed with exit code 1

What version of the product are you using? On what operating system?
I'm using xcode 4 a project for the ipad with the 4.2 ipad simulator on a Mac 
os X version 10.6.7

Please provide any additional information below.
I think the problem is with the libz.1.2.3.dylib library, and I have some guest 
of where might be the problem:

1. The libz.1.2.3.dylib path error is on iPhoneSimulator.platform, it is valid 
for ipad too?? If is not, which lib could i use for the same purpose with the 
ipad??

2. I'm not sure i'm adding the libz.1.2.3.dylib lib correctly. What I have done 
is: right-click on Resources folder -> add files to "myproject" -> search for 
the libz.1.2.3.dylib and add the 4.2 version of it from the path u could see in 
the compiler errors. I also try to add to the frameworks folder with the same 
results.

I'm reading lots of posts about how to fix similar problems but no one could 
help me.

Any idea of what I have to do to fix my problem?? I imagine is the path but 
dont know which lib i could use then for the ipad.

Really thanks

Original issue reported on code.google.com by A10deCas...@gmail.com on 14 Apr 2011 at 11:33

GoogleCodeExporter commented 9 years ago
i have similiar problem, but in my casae xcode 4.0.1 crashes when trying to 
build to 4.2 ipad simulator...

Original comment by map...@gmail.com on 22 Apr 2011 at 11:50

GoogleCodeExporter commented 9 years ago
I'm using XCode 4.0.2 and can't seem to get past linking errors, libz.dylib is 
definitely linked in but the build can't seem to see it:

Undefined symbols for architecture armv6:
  "_zipClose", referenced from:
      -[ZipArchive CloseZipFile2] in libziparchive.a(ZipArchive.o)
  "_zipOpenNewFileInZip3", referenced from:
      -[ZipArchive addFileToZip:newname:] in libziparchive.a(ZipArchive.o)
  "_unzOpenCurrentFile", referenced from:
      -[ZipArchive UnzipFileTo:overWrite:] in libziparchive.a(ZipArchive.o)
  "_unzGetGlobalInfo", referenced from:
      -[ZipArchive UnzipOpenFile:] in libziparchive.a(ZipArchive.o)
  "_unzReadCurrentFile", referenced from:
      -[ZipArchive UnzipFileTo:overWrite:] in libziparchive.a(ZipArchive

Original comment by macegh...@gmail.com on 1 May 2011 at 5:43