我有一些单元测试在Xcode 3.1 / Leopard中通过。这些测试在iPhone应用程序项目中使用SenTestingKit,并在单独的“Test”目标中构建/运行。我刚刚升级到Snow Leopard上的Xcode 3.2,测试似乎可以运行(我在Console.app中得到日志并看到它们通过),但是Xcode会在运行后停止响应。即使在Test目标中没有包含任何测试用例,Console.app也会显示来自Xcode的以下错误:
Xcode[1734] -[XCBuildLogCommandInvocationSection setTestsPassedString:]:
unrecognized selector sent to instance 0x20104db60
Xcode[1734] -runOperationInBackground raised an exception:
-[XCBuildLogCommandInvocationSection setTestsPassedString:]:
unrecognized selector sent to instance 0x20104db60
我已经清理和重新构建,但没有效果。通过搜索似乎找不到关于这个话题的任何信息(尽管似乎有一个人遇到了相同的问题)。
更新:我已向苹果报告了这个错误,编号为7214051。