在XCode 3.2.4升级后进行逻辑测试时出现问题 [英] Problem doing logic tests after XCode 3.2.4 upgrade

查看:71
本文介绍了在XCode 3.2.4升级后进行逻辑测试时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近升级到XCode 3.2.4和iOS SDK 4.1导致我的单元测试不再适用于我的iOS项目。该项目目前仅在模拟器上运行,而不是真正的硬件。

The recent upgrade to XCode 3.2.4 and iOS SDK 4.1 lead to that my unit tests are not working any longer with my iOS project. The project is currently only running on the simulator, not real hardware.

我试图创建一个新的空白项目,其中添加了一个永远通过的虚拟测试用例,但它也不起作用,给我这个结果:

I tried to make a new blank project with a dummy test case added that will always pass, but it does not work either, giving me this result:


处理命令输出时发生内部错误:

- [ XCBuildLogCommandInvocationSection setTestsPassedString:]:发送到实例0x20176e320的无法识别的选择器

处理命令输出时发生内部错误:

- [XCBuildLogCommandInvocationSectionRecorder endMarker]:无法识别的选择器发送到实例0x201257de0

An internal error occurred when handling command output:
-[XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance 0x20176e320
An internal error occurred when handling command output:
-[XCBuildLogCommandInvocationSectionRecorder endMarker]: unrecognized selector sent to instance 0x201257de0

是否有其他人在使用XCode 3.2.4和iOS SDK 4.1时遇到测试用例问题?

Is anyone else having issues with their test cases using XCode 3.2.4 and iOS SDK 4.1?

推荐答案

这似乎是一个回归,报告代码的某些部分不尊重时区问题。输出在开始之前标记为结束,因此非常困惑和窒息。

It seems to be a regression with some part of the reporting code not respecting timezone issues. The output is tagged as ending before it began, so gets very confused and chokes.

我在Google上找到的一个解决方法是更改​​运行脚本目标的阶段。

One work-around, that I found somewhere on Google, is to change the Run Script stage of the target.

更改

"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" 

to

"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests" 1> /tmp/RunUnitTests.out 

它正在解决问题,而不是解决它,但确实有效。

It’s working round the issue, rather than solving it, but does work.

这篇关于在XCode 3.2.4升级后进行逻辑测试时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆