Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 935
Johannes Fahrenkrug Avatar asked Oct 02 '13 16:10

Johannes Fahrenkrug


1 Answers

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

like image 171
VeganTofu Avatar answered Oct 11 '22 08:10

VeganTofu