Error loading XCTest, no suitable image found.

不打扰是莪最后的温柔 提交于 2019-12-02 22:03:53
Kohei Tabata

I've encountered exactly the same problem. I was able to fix the problem by setting the provisioning profile to something other than Automatic on both targets (the test and the test host).

I verified this was the problem by reverting it back to automatic, and the problem reoccured.

Xcode 10 here.

For me the issue was the discrepancy between the Project deployment target and the Target deployment target. Once I had them matching, XCTest started working.

@tagy22's comment worked for me

Had this error, I had to set both targets provisioning profile to a wildcard profile.

I found that if I deleted all iOS developer certificates from OS X keychain and the iPhone developer portal, and then let Xcode re-request the development certificates, the problem is resolved.

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