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

允我心安 提交于 2019-12-05 04:14:09

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

jcardenete

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!