According to What's new on Xcode, Xcode 9 allows us to run multiple instance of simulator.
But what's the way to do this ?
I tried to Build & Run
on different models but it Quit
the current instance.
I personally prefer to use a Multiple Simulators as the trigger simulator. For creating a new simulator, just hit cmd + shift + 2 to open the devices window then select Simulators then name it whatever you want but remember it because it will be used later. I'll call it Multiple Simulators.
The basic way to open a list of simulators is to use Xcode -> Window -> Devices and Simulators. Here you can create and manage all available simulators.
If you require a different version of the iOS simulator than is provided by your Xcode installation, you can download additional simulators in Xcode. Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.
You can run two instances of the iOS simulator from the command line.
I solved my problem, it's "very simple" :]
On the simulator, you must choose a new device from Hardware > Devices
. The new instance will starts.
Then, choose your model on Xcode
.
Here is the solution.
Xcode allows you to run simulations in parallel (that can communicate with each other as well, if this is part of app functionality), but you cannot run parallel simulations on the same simulated device type (ie, you can't simulate on two iPhone 11 Pros, but your simulations could be, for instance, iPhone 11 Pro Max & iPhone 11 Pro.)
I suspect you could detach the second simulation from Xcode also by repeating step 2, and then reattach Xcode to the first instance, for instance if you want the ability to inspect what is happening on either simulated device, but I haven't tried this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With