Xcode 3.2 in Snow Leopard hangs running unit tests

不羁岁月 提交于 2019-12-03 16:57:42

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

--

Updated:

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)...

...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.)

No, seriously. Give it a try.

Message was edited by : cde at 3:34 PM

Sounds like corruption; maybe your Xcode installation is bad or maybe something got hosed when you installed Snow Leopard.

Or maybe your project is hosed somehow.

If you have access to another Snow Leopard machine, give it a test there. If it still crashes, file a bug via http://bugreport.apple.com/

Me too experiencing same thing. After i failed to run mu old project(which was developed in leopard and Xcode 3.1) I tried creating a new project in Xcode 3.2 and added a new target for unit testing, added new files and a dummy case, again Xcode hanged.... no other option, i had to force quit it.

per this link http://www.artin.org/geekblog/2009/09/xcode-snow-leopard-logical-unit-tests-hanging/

changing your Timezone to PST resolves this.

Interestingly, I have this problem on my macbook pro, but not on my mac pro.

One other issue to watch out for (although arguably not the issue of OP) is if your unit test bundle is hosted in a test rig (your app) and their is an issue with application initialization, your tests will hang.

There's a rdar for this: rdar://7333645 which suggests not init'ing NSApplicationMain

Diagnosis for this is to do a build. If it hangs, stop the build.

Manually attempt to execute the app (Cmd-Option-R or Cmd-Option-Y) - if you're app doesn't come up, check the console.

Apple posted a work-around file and a demo test project here: https://developer.apple.com/library/ios/#samplecode/iPhoneUnitTests/Introduction/Intro.html

Just add: Xcode324iOS41TestSuiteWorkaround.m to your test target and everything will magically work :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!