我有一组导致 XCode 3.2.4 出现问题的 SenTestCase。尝试编译时(使用非常基本的 STFail(@"");)会出现以下编译器错误:
An internal error occurred when handling command output: -
[XCBuildLogCommandInvocationSectionRecorder endMarker]:
unrecognized selector sent to instanceAn internal error occurred when handling command output: -
[XCBuildLogCommandInvocationSection setTestsPassedString:]:
unrecognized selector sent to instance
我已经包含了来自“/Developer/Library/Frameworks”的 SenTestkingKit.framework,并且刚刚由目标通过“Targets > Add > New Target > Cocoa Touch > Unit Test Bundle”创建。有任何想法吗?谢谢!
最佳答案
这似乎是一种回归,报告代码的某些部分不考虑时区问题。输出在开始之前被标记为结束,因此变得非常困惑和窒息。
我在 Google 某处找到的一种解决方法是更改目标的运行脚本阶段。
改变
"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests"
到
"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" 1> /tmp/RunUnitTests.out
它正在解决问题,而不是解决问题,但确实有效。
关于iphone - Xcode 3.2 中的 SenTestCase 和 XCBuildLogCommandInvocationSection 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3516745/