R – Xcode 3.2 in Snow Leopard hangs running unit tests

iphoneosx-snow-leopardtestingunit testingxcode

So I have some unit tests that pass in Xcode 3.1 / Leopard. These use SenTestingKit in an iPhone app project and are built/run in a separate "Test" target. I just upgraded to Xcode 3.2 on Snow Leopard and the tests seem to run (I get logs in Console.app and see them passing), but Xcode beachballs and must be force quit'd after they are run. Console.app displays the following error from Xcode, which appears even if no test cases are included in the Test target:

Xcode[1734] -[XCBuildLogCommandInvocationSection setTestsPassedString:]:
                unrecognized selector sent to instance 0x20104db60

Xcode[1734] -runOperationInBackground raised an exception: 
                 -[XCBuildLogCommandInvocationSection setTestsPassedString:]:
                 unrecognized selector sent to instance 0x20104db60

I've cleaned and re-built to no avail, and I can't seem to find anything on this topic by searching (although it does seem one person has the same issue).

Update: I have reported this as a bug to Apple with bug #7214051.

Best Answer

I have also filed a bug report for this, 7210948. Still no response from Apple which is disheartening.

--

Updated:

A user on the Apple Developer forums posted a workaround -

We have recently discovered the root cause of this problem.

People who are affected can work around it by (I hope you're ready for this)...

...changing the Time Zone on your Build machine away from Central Daylight Time. (In six >weeks you can change it back, and people in Mountain Standard TIme will be affected.)

No, seriously. Give it a try.

Message was edited by : cde at 3:34 PM