Xcode "directory not found for option -L" errors

soleil picture soleil · Dec 9, 2013 · Viewed 21.3k times · Source

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.

Answer

Ketan picture Ketan · Jun 4, 2014

There is two errors that people seem to be confused with

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