I haven’t written unit tests before in Xcode. I started to read Apple’s article on unit testing with iPhone development because I wanted to follow sound development principles with an agile approach. Not long into the guide, I got stuck. Literally. Using Xcode 3.2 on Snow Leopard caused Xcode to lock/hang during the build of the logical unit test. Same results after iPhone SDK 3.1 came out. I couldn’t find anything online either except a few people experiencing the same issue. In the system console (not Xcode console) I was seeing:
Xcode -[XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance 0x2009b7620
Xcode -runOperationInBackground raised an exception: -[XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance 0x2009b7620
Needless to say, I was losing my mind. Finally, a user in the Apple Developer forums, “cde”, posted the following gem:
So until it’s fixed, change your timezone to Pacific time.