Xcode "directory not found for option -L" errors

Viewed 25136

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.

7 Answers

I did not have any added library paths under Library Search Paths, but instead I could solve this issue by deleting the Derived data, by going to Preferences -> Locations

I started seeing both -L and -F errors in the build for a react native app and none of the existing answers solved the problem.

For me the problem was I had updated the ios version in my Podfile:

platform :ios, '11.0'

but not in the xcode project.pbxproj file:

IPHONEOS_DEPLOYMENT_TARGET = 10.0;

(The setting appears multiple times in the .pbxproj file)

Making the versions match solved the problem.

Related