Xcode 5: Multiple test targets in one scheme: “Simulator already in use”

笑着哭i 提交于 2019-12-04 16:22:29

问题


In Xcode 5, I have a workspace with multiple projects and a scheme that should run all the test targets of the various projects. When I kick off the tests about 3 test project targets pass. So far, so good. But at the fourth test target I get an error message from Xcode telling me that the simulator can't be launched because it is already in use.

Is there any way to kill the simulator between each test target(!) in a single(!) scheme? Or are there other solutions?

Edit: I have opened a rdar for this: http://openradar.appspot.com/15153136

Thanks!


回答1:


I have come into this error whenever i try to run my functional tests using calabash. One way to do this maybe be to run a script in the after each build process to kill the simulator.

this guy has wrote a bash script that does this http://cdrussell.blogspot.co.uk/2012/04/script-to-kill-iphone-simulator-if.html

Might be worth running this as a build phase for each test target



来源:https://stackoverflow.com/questions/19141449/xcode-5-multiple-test-targets-in-one-scheme-simulator-already-in-use

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