XCTest: The bundle “target Tests” couldn’t be loaded because its executable couldn’t be located

后端 未结 3 2432
走了就别回头了
走了就别回头了 2021-02-20 10:18

I\'m using XCode 6.2 and I have a project with several targets and with no tests.

I\'m trying to include now XCTest for one of the targets. To do so, I add a new \"Cocoa

相关标签:
3条回答
  • 2021-02-20 10:56

    In my case, target's iOS Deployment Target in Build Settings was lower than target device's version. Hope that helps someone.

    0 讨论(0)
  • 2021-02-20 11:13

    I got this error today because I forgot to add sources to the "Compile Sources" build phase in my test target.

    0 讨论(0)
  • 2021-02-20 11:13

    I finally managed to solve the problem. It was related to the compiler selected by default for the XCTest target. It had selected "Unsupported Compiler" and I changed to "Default compiler (Apple LLVM 6.1)" and it started working again.enter image description here

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