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
I was also having same issue and I did following and issue is gone.
Go to Product -> Clean and re-run the project.
I hope it might be useful for some other developers.