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
2 Add the libz library to your target
I still get errors:
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With