Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed build b/c symbols not found zlib

I have a problem adding libs for zip extraction to my iPhone app.

I decided to use SSZipArchive. It uses minizip.

After following the instructions:

1 Add SSZipArchive.h, SSZipArchive.m, and minizip
added minizip

2 Add the libz library to your target
added libz

I still get errors:
alt text

Symbol(s) not found.

I tried adding -lz to Other Linker Flags and adding lybz.dylib but it didn't help. Please let me know if you know how to get libz to work here.


Solved: Instead of using a folder, I made a yellow reference group, removed /minizip/ from includes and now everything works.

like image 904
Alex L Avatar asked Oct 18 '10 01:10

Alex L


1 Answers

unzOpen, unzOpenCurrentFile, and unzOpenCurrentFilePassword are functions defined in the minizip library. The linker is complaining that it can't find those functions, which means they're not getting compiled or linked in properly.

Make sure that minizip/unzip.c is included in your project properly and double-check that it's getting compiled and linked.

like image 149
Adam Rosenfield Avatar answered Oct 05 '22 01:10

Adam Rosenfield