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

前端 未结 3 535
心在旅途
心在旅途 2021-01-19 07:40

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 pro

相关标签:
3条回答
  • 2021-01-19 07:53

    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.

    0 讨论(0)
  • 2021-01-19 07:56

    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.

    0 讨论(0)
  • 2021-01-19 08:04

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

    0 讨论(0)
提交回复
热议问题