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
Faced similar issue, while running the code on a simulator, tried all the above mentioned options, still got the same error. Tried connecting the iOS device and build the code, it worked for us. This can be a quick workaround.