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
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