Running multiple Xcode instances on same machine

Hi there,


we would like to run several xcodebuild instances (preferably the Xcode 7.3.1 GM version plus several Xcode 8 betas as they come out) in parallel on the same (build) machine.

Using xcrun this works nicely.

So we currently have several build jobs that each execute another version of xcodebuild depending on which xcode is configured in the build job.


The problem comes in, when the "xcodebuild test" is executed, 'cos this opens up a simulator to run the tests in.

If several build jobs are running in parallel, each "xcodebuild test" will want to start a simulator and things go nuts / crash.


Is what we are trying to achieve possible at all? I.e. is it possible to execute several xcodebuilds (from different xcode.app archives) at the same time and allow them to open up simulators to run tests in?


Thanks,


Florian

Not sure this is your problem, but keep in mind they will all use the same, single, xcode/sim prefs plist. No telling what will happen when more than one tries to read/write from that file.

Please check out the Xcode 8 beta 2 release notes:

Xcode 8 beta 2 can coexist with previous versions of Xcode. (Note - running multiple instances of Xcode simultaneously is not supported.)

That is not supported. In both, they'll loose access to simulator services when the other one starts (last one wins), and in the case of 7.3, it'll actually abort if Xcode 8 is started within a particular window of time after launch.

Running multiple Xcode instances on same machine
 
 
Q