在Xcode 5.0中运行单元测试时出错

Ker*_*rog 5 objective-c ios sentestingkit xctest

当我尝试在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).
Run Code Online (Sandbox Code Playgroud)

我该怎么办?

小智 0

您可以尝试关闭Xcode并删除

〜/库/开发人员/Xcode/DerivedData/ModuleCache

我在使用 XCTest 框架时遇到了类似的问题。最后,我删除了所有测试并通过创建新的测试目标将它们添加回来。