Snow Leopard中的Xcode 3.2挂起正在运行的单元测试 [英] Xcode 3.2 in Snow Leopard hangs running unit tests

查看:50
本文介绍了Snow Leopard中的Xcode 3.2挂起正在运行的单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一些通过Xcode 3.1/Leopard的单元测试.它们在iPhone应用程序项目中使用SenTestingKit,并在单独的测试"目标中构建/运行.我刚刚在Snow Leopard上升级到Xcode 3.2,并且测试似乎正在运行(我在Console.app中获取日志并看到它们通过了),但是Xcode沙滩球必须在运行后被强制退出. Console.app从Xcode中显示以下错误,即使Test目标中未包含任何测试用例,该错误也会出现:

So I have some unit tests that pass in Xcode 3.1 / Leopard. These use SenTestingKit in an iPhone app project and are built/run in a separate "Test" target. I just upgraded to Xcode 3.2 on Snow Leopard and the tests seem to run (I get logs in Console.app and see them passing), but Xcode beachballs and must be force quit'd after they are run. Console.app displays the following error from Xcode, which appears even if no test cases are included in the Test target:

Xcode[1734] -[XCBuildLogCommandInvocationSection setTestsPassedString:]:
                unrecognized selector sent to instance 0x20104db60

Xcode[1734] -runOperationInBackground raised an exception: 
                 -[XCBuildLogCommandInvocationSection setTestsPassedString:]:
                 unrecognized selector sent to instance 0x20104db60

我已经清理干净并重新构建,但似乎无法通过搜索找到关于此主题的任何内容(尽管它确实

I've cleaned and re-built to no avail, and I can't seem to find anything on this topic by searching (although it does seem one person has the same issue).

更新:我已将此错误报告给Apple,错误号为#7214051.

Update: I have reported this as a bug to Apple with bug #7214051.

推荐答案

我也为此提交了错误报告7210948.Apple仍然没有令人沮丧的答复.

I have also filed a bug report for this, 7210948. Still no response from Apple which is disheartening.

-

已更新:

Apple Developer论坛上的一位用户发布了一种解决方法-

A user on the Apple Developer forums posted a workaround -

我们最近发现了此问题的根本原因.

We have recently discovered the root cause of this problem.

受影响的人可以解决此问题(希望您为此做好了准备)...

People who are affected can work around it by (I hope you're ready for this)...

...将Build机器上的时区更改为远离Central Daylight Time. (在六周内您可以将其改回,Mountain Standard TIme中的人员将受到影响.)

...changing the Time Zone on your Build machine away from Central Daylight Time. (In six >weeks you can change it back, and people in Mountain Standard TIme will be affected.)

不,认真.试试看.

消息的编辑者:cde,下午3:34

Message was edited by : cde at 3:34 PM

这篇关于Snow Leopard中的Xcode 3.2挂起正在运行的单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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