Why does XCTest run tests twice on 64-bit architectures?

1.1k Views Asked by At

I recently setup a unit test suite using the XCTest framework with XCode bots and a dedicated OS X server. I'm noticing that when I run the tests targeting 64-bit architecture (in this case, the iPhone simulator on x86_64), the tests run twice. Why is this? I've attached a screenshot showing the 57 test being run on i386, and 114 tests being run on x86_64 (for a total of 171 tests): enter image description here

1

There are 1 best solutions below

1
Adam Sharp On

What is "Build Active Architecture Only" (ONLY_ACTIVE_ARCHS) set to in your project?

Setting this to Yes in Debug configuration (the configuration my tests run in) fixed this problem for me.