'Library Not Found' Tip for iPhone Developers

I don’t know how many times I’ve run into this problem and it always takes me a minute to remember how to fix it.

When working with multiple targets in XCode, I often run into a compile error such as this for Google Analytics:

ld: library not found for -lGoogleAnalytics
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

After double checking that the library is indeed included in my project I remember about the Library Search Paths. When you copy or duplicate a target, for some reason XCode decides that it needs to escape any double quotes " with a \ so you get something nasty like this mess in my current project:

Just remove all the \’s and then everything will be happy again.