I was working on my project and suddenly after editing the code and compiling gave this error:
ld: warning: directory not found for option \'-
L/Use
Check playSiew.m is in Compile Sources section. isn't it?
You can find Compile Sources section follow this step
If don't have playSiew.m in this section . You must to add it to this section.
You may be accidentally #import
'ing a .m file instead of a .h. Use Cmd+Shift+F and search for ".m" (without quotes). It will most likely lie in one of the classes mentioned in the warning. If not, clean and run again.
For me it was different. I had the same error when I removed a Pod and solved it by removing this pod from the Other Linker Flags in the Build Settings
then clean your project [Product > Clean] and rebuild
As I said the problem wasn't the code but some settings. So what I did was copying the code from my friends' Mac (it was working fine), and installed a fresh copy of the project to my Mac. It worked.
the same error i faced. so, i just removed reference of that classes which are generating the errors and than again gave reference and the error was gone...
as D80Buckeye says there should be problem of dragging and dropping files instead of Clicking on "Add Files"
Cleaning the project not works for me. Restart the Xcode works for me...