user2393462435
user2393462435

Reputation: 2652

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

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

Upvotes: 3

Views: 1153

Answers (1)

Adam Sharp
Adam Sharp

Reputation: 3668

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.

Upvotes: 0

Related Questions