Xcode "directory not found for option -L" errors
compiler-errors, linker-errors, xcode
Solution
There are two errors that people seem to be confused about:
If it is a "directory not found for option '-L/..." error That means it's a Library Error, and you should try to:
- Click on your project (targets)
- Click on Build Settings
- Under Library Search Paths, delete the paths
If it is a "directory not found for option '-F/..." That means it's a Framework Error, and you should try to:
- Click on your project (targets)
- Click on Build Settings
- Under Frameworks Search Paths, delete the paths
Problem
I'm getting these errors: ``` ld: warning: directory not found for option '-L"/pathToMyApp/MyApp/Shared/Libraries/ADMS_AppLibrary"' ld: warning: directory not found for option '-L"/pathToMyApp/MyApp/Shared/Libraries/TestFlightSDK1.1"' ld: warning: directory not found for option '-L"/pathToMyApp/MyApp/Shared/Libraries/Medialets"' ld: library not found for -lTestFlight clang: error: linker command failed with exit code 1 (use -v to see invocation) ``` These directories do in fact exist at the paths above. The thing is, the app used to compile fine. All I did was add a new version of the Medialets library to the project, and now I get these erros.