XCode – launch multiple simulators

Everyone that use XCode knows that to run the app in a different device, you need to select one from list, launch and wait the device to boot…
Well, it’s a mess. I hate a lot this feature.

So, today a trick to run all of your simulators and from XCode select the rigth one without wait the boot and debug the app… simultaneously!

It’s a great trick. Tried with XCode 7.

Let’s do it:

Open terminal and navigate to the XCode Applications folder, usually is:

/Applications/Xcode.app/Contents/Developer/Applications

put an ll and you should see all of your simulators:

drwxr-xr-x  3 root  wheel   102B 23 Dic 15:49 DesktopReplayer.app

drwxr-xr-x  3 root  wheel   102B 23 Dic 15:49 Simulator (Watch).app

drwxr-xr-x  3 root  wheel   102B 23 Dic 15:49 Simulator.app

drwxr-xr-x  3 root  wheel   102B 23 Dic 15:49 Xcode Server Builder.app

Always from your terminal, write:

open -n Simulator.app

The -n params stay for: “Open a new instance of the application even if one is already running

A default (latest opened) simulator will be opened. Right?

Well, write the same command again… you should see an error alert, like this:

Schermata 2017-02-13 alle 13.48.50

Select OK and switch in the second opened Simulator (CMD+TAB). Or click in the dock bar, you should see a list of opened simulators.

In order to make it works you must change the device type.

Select from Simulator menu the “Hardware” item, next “Device” and next a different one.

A new device will boot!

Repeat until you want…

Schermata 2017-02-13 alle 13.54.20

enjoy!

Alberto Pasca
Latest posts by Alberto Pasca (see all)