Xcode 7: Linker warning for -F/<path> but no settings in app.xcodeproj/project.pbxproj match <path>

I converted a Swift 1.x project for iOS to Swift 2.x using Xcode 7 beta 3. It compiles and runs but I have a linker warning persisting. I’ve done a search through the project.pbxprox for the offending path, and have looked in the “build settings” in Xcode but no sign of the offending path (not even in the Library Search Path or the Framework Search Path). I did, however, find that the xcuser state file contains the substring.

The warning: 'ld: warning: directory not found for option "-F/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/Developer/Library/Frameworks\"'

  • How to change the default Xcode iphone simulator when testing in the terminal?
  • Unable to install app in simulator xcode 9 beta
  • How can I get the source code from the .ipa file?
  • OpenCV 3.0.0 with Xcode 6.3
  • Execute action when back bar button of UINavigationController is pressed
  • How to programmatically display version/build number of target in iOS app?
  • The searches:

    [foo@bar baz{Swift2}]$ grep -r Baz.xcodeproj/ iPhoneOS9.0
    grep: iPhoneOS9.0: No such file or directory
    [foo@bar baz{Swift2}]$ grep -r 'Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/Developer/Library/Frameworks' Baz.xcodeproj/
    Binary file Baz.xcodeproj//project.xcworkspace/xcuserdata/bar.xcuserdatad/UserInterfaceState.xcuserstate matches
    [foo@bar baz{Swift2}]$

    As usual, I’ve done a “clean” on both the project as well as the simulators (watch, iPhone).

    I’ve examined the directory path and see that indeed there is no such path; the path components exist up to the ‘iPhoneOS9.0.sdk’ component. That is, this path exists: '/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk' but there is no 'Developer' subdirectory at that location. There is, however, a framework directory underneath, but it’s at 'iPhoneOS9.0.sdk/System/Library/Frameworks/' instead of 'iPhoneOS9.0.sdk/Developer/Library/Frameworks'.

    3 Solutions Collect From Internet About “Xcode 7: Linker warning for -F/<path> but no settings in app.xcodeproj/project.pbxproj match <path>”

    I’ve seen this same issue. I believe that it happens because of some path incorrectly hard-coded into the test target’s build settings. I don’t know what path it is; my response is to delete the test target, and then the error goes away.

    You can always make a new test target, and you don’t have to delete the test files, so it’s no great loss.

    If you get this issue after upgrading Xcode, then just in Xcode click;

    File -> Open Recent -> Clear Menu.

    Xcode -> Quite Xcode

    Go to your project directory and open your project normally.

    click cmd + alt + shift + K, this will clean your project

    clcik cmd + B

    Then you should be fine.

    Change framework search path to $(PROJECT_DIR)/* for your test target