Moving a project to Xcode 4.2, I am getting a number of Mach-O linker unresolved errors, for things like _crc32, _expf, and _UnwindSjLj_Register, on a project that compiles and links fine in Xcode 4.0.3.
I suspect this might be a libz issue, since my previous project linked libz.1.2.3.dylib. I removed that reference, and added libz.1.2.5.dylib, that is found in my /Platforms/iPhoneOS.platform/DeviceSupport/5.0 (9A5259f)/Symbols 1/usr/lib folder.
I get the same 39 unresolved references whether I include libz.1.2.5.dylib or not, so it seems very suspicious.
Link against the libz.dylib
, but add it through the Build Phases tab.
Project >> Target >> Build Phases >> Link Binary With Libraries
Press + under the list and select the libz.dylib
then it will add the lib so it will work inbetween SDK updates.
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