在iOS 4.1 SDK中破坏了单元测试?

Mat*_*ker 11 iphone unit-testing ocunit ios4

升级到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
Run Code Online (Sandbox Code Playgroud)

尽管它报告X测试中的所有X都通过了,但我得到了这些错误.我读到了旧版XCode中的一个类似的错误,它也是在它发布之后立即发生的(关于时间正则表达式中的错误)可以通过将你的时区设置为太平洋时间来缓解,但我不能肯定地说,这是一个回归到那里.

还有其他人有这个问题吗?

Dav*_*Lee 10

apple dev论坛上有一个修复程序,

https://devforums.apple.com/thread/68687

这是一个日期解析问题.修复很快,它需要在测试包中添加一个.m.该修复程序可在上方或下方获得:

http://gist.github.com/586296