运行单元测试时,当我试图在Xcode 5.0创建单元测试文件,我得到以下错误:错误在Xcode 5.0
The test bundle at /.../Tests.octest could not be loaded because it is built for a different architecture than the currently-running test rig (which is running as x86_64).
我应该怎么办?
运行单元测试时,当我试图在Xcode 5.0创建单元测试文件,我得到以下错误:错误在Xcode 5.0
The test bundle at /.../Tests.octest could not be loaded because it is built for a different architecture than the currently-running test rig (which is running as x86_64).
我应该怎么办?
你可以尝试关闭Xcode和删除
〜/资源库/开发/ Xcode中/ DerivedData/ModuleCache
我有一个类似的问题,使用XCTest框架。最后,我删除所有测试,并通过创建新的测试目标将它们添加回来。
您可能试图在“iPhone Retina(4英寸64位)”模拟器中运行测试。
切换到 “iPhone的Retina(4英寸)的” 模拟器,事情应该可以正常
Downvoted this answer因为测试应该能够运行,无论它们运行在哪个模拟器中。如果它们在64位模拟器中不起作用,那么开发人员需要弄清楚如何实现。 – linusthe3rd
我投了赞成票,因为标记为正确的答案对我无效。这一个。 – dinesharjani