Xcode "not found for errors -L"

I get the following 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 exist on the above paths.

The fact is that the application was used for compilation. All I did was add a new version of the Medialets library to the project, and now I get these erros.

+4
source share
5 answers

There are two mistakes people seem to get confused with

If this is a "directory not found for the parameter" -L / ... "Error This means that this is a library error, and you should try:

() " ". " " ", " -F/... ", , Framework, :

() " ". " Framework"

+9

, .

, , Xcode 5 " " .

, . ( , , $(PROJECT_DIR)/path/to/library "$ (SRCROOT)///". , .)

, Xcode. Xcode 5.1 (5B130a).

+7

ld: warning: '-L' ---- it

, . $( SRCROOT)

+3

"-L",

cmake ( 3.3.2) xcode, ,

link_directories ("${PROJECT_SOURCE_DIR}/SDKs/thelib/lib")

. cmake, cmGlobalXCodeGenerator:: AddDependAndLinkInformation (...), :

{ ...
  if(this->XcodeVersion > 15)
  {
    // Now add the same one but append
    // $(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) to it:
    linkDirs += " ";
    linkDirs += this->XCodeEscapePath((*libDir + "/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)").c_str());
  }
  linkDirs += " ";
  linkDirs += this->XCodeEscapePath(libDir->c_str());
}

, XCode Lib

/Users/myuser/thelib/lib/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
/Users/myuser/thelib/lib

; , , - , , .

- , ...

" " "-Wl", , .

+3

lib " " " ", -, Xcode 6 .

1) "Frameworks"

2) , , , ""

3) " "

4) , ""

5) ,

+1
source

All Articles