Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't launch tests with XCTest

Tags:

xcode

ios

xctest

Everything worked fine, but on some build I've got this (when trying to launch tests):

The test bundle at "path to xctest" 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 am I doing wrong? I've tried to rebuild, clean, relaunch Xcode, reboot OS X...

like image 773
kpower Avatar asked Sep 21 '13 16:09

kpower


1 Answers

I think I found the solution! You can't currently build for iOS 6 and iOS7 x64. So if you want iOS7 x64, you have to change the build variable (click on the project and then on the target) Architectures to the value "...including 64-bit". Unfortunately any iOS prior to 7 isn't supported.

Maybe this helps.

like image 53
Augunrik Avatar answered Sep 29 '22 13:09

Augunrik