【发布时间】:2010-09-12 18:49:47
【问题描述】:
升级到 4.1 iOS SDK 后,我的单元测试包总是返回以下两个错误和一个警告:
An internal error occurred when handling command output: -[XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance
An internal error occurred when handling command output: -[XCBuildLogCommandInvocationSectionRecorder endmarker:]: unrecognized selector sent to instance
Run unit tests for architecture 'i386' (GC OFF) did not finish
尽管它报告 X 中的所有 X 测试都通过了,但我还是收到了这些错误。我在旧版本的 XCode 中读到了一个类似的错误,该错误也在它发布后立即发生(关于时间正则表达式中的错误),可以通过将您的时区设置为太平洋时间来缓解,但我不能可以肯定地说,这是具体到那里的回归。
还有其他人有这个问题吗?
【问题讨论】:
-
我也有这个问题。 stackoverflow.com/questions/3516745/… 建议更改测试目标的 Base SDK,但这并不能解决我的问题。
-
使用 iOS 4.1 SDK 时遇到同样的错误。
-
我在 iOS 4.1 SDK 中遇到了同样的问题。这个问题在 iOS 3.2 SDK 中变得更加严重。 3.2 中有更多这些内部错误。至今没有解决办法。 :-(
标签: iphone unit-testing ios4 ocunit