When I'm building my Xcode 4 apps I'm getting this warning:
ld: warning: directory not found for option '-L/Users/frenck/Downloads/apz/../../../Downloads/Google Analytics SDK/Library'
ld: warning: directory not found for option '-L/Users/frenck/Downloads/apz/../Google Analytics SDK/Library'
But I do not have Google Analytics in my app, I deleted all of it how can I remove the error? And archiving an app gives me the error:
clang: error: no such file or directory: 'armv6'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I've tried so many things but I'm still getting this error when I'm trying to make an .IPA file
For me the problem was a missing escape "\" character.
My search paths were broken up on several lines in the Library Search Paths. Conveniently, they were breaking at spaces in my path. Adding the escape "\" fixed it for me.
Supplemental answer
All the answers said to either delete the Framework or Library search paths from the target. I had two problems:
I ran into the same problem (the first one) after an Xcode crash and none of the solutions proposed worked. To suppress the warning I have done:
• manage schemes...
• deleted the current scheme
• Autocrate Schemes Now
There are two errors that people seem to be confusing.
If it is a "directory not found for option '-L/..." error, that means it's a Library Error, and you should try to:
If it is a "directory not found for option '-F/...", that means it's a Framework Error, and you should try to:
This might happen when you move the referenced file around.
For me the problem seemed to be that I hadn't included the appropriate frameworks (when copying addons from another project I didn't copy the frameworks files as well)
My problem was that I opened the original .xcodeproj instead of the .xcworkspace that was generated by CocoaPods.