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
Had a problem with this same lib - libz.1.2.3.dylib. As suggested, I added libz.dylib. still got the message "ld: Library not found for -lz.1.2.3". Removed the reference build succeeded. Tried replacing libz.dylib with libz.1.2.5.dylib and still built without error. XCode 4.3.2, Lion (OS X 10.7.4)
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.
I had same problem. it works xcode 4.2 .when i run the app in xcode 4.5. I have this problem. libz.dylib (No such file or directory)Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1. I have tried with libz1.2.5dylib.but no use