iosobjective-cxctestsentestingkit

Error when running unit tests in Xcode 5.0


When I tried creating a unit test file in xcode 5.0, I get the following error:

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).

What should I do?


Solution

  • You can try to close Xcode and delete

    ~/Library/Developer/Xcode/DerivedData/ModuleCache

    I had a similar issue using the XCTest framework. In the end I delete all tests and added them back by creating a new test target.