I am getting this error after adding the libxml2.2.dylib file
Linking /Users/Biranchi/Desktop/Funmovies TabBarController/build/Debug-iphonesimulator/funmovi
Try Product -> Clean. Worked for me.
Make sure if you have external classes they are added in the compile sources. I had the same error when i was trying to import a certain class. To fix it goto build phases and add it into the compiled sources.
I had a similar problem when building a project but this time with the file timbreID.c
arm-apple-darwin10-gcc-4.2.1: timbreID.c: No such file or directory
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
After several attempts I finally looked into the 'Targets' on my XCode project and realized that the file timbreID.c was red (= not found). I right-clic on it and chose the new path manually.
After that: build succeeded!!
just remove the libz1.2.3 and add the libz1.2.5 library to your build phase.
I had the same problem and I went on checking the target info
In the library search paths there was this entry, "$(DEVELOPER_DIR)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/usr/lib"
I removed it and the app WORKED!!!
I was getting the same error even though none of the files in the navigation pane were red. Turns out I refactoring the name of a class throws the xcode path locations off. The solution that worked for me was to select the .h and .m files one at a time, set the location to "Absolute Path" (in the right hand menu, leftmost tab) and then browse to its location in the file system.