We can easily run multiple instances of simulator using terminal commands. But they have be different devices like iPhone 6s, iPhone 6s Plus, iPhone 6 etc, i.e. we cannot have two simulators of iPhone 6 simultaneously. Also we can't use xcode debugging along with all the devices. We can only have a single simulator with xcode debugging.
Following is the terminal command to launch two simulators for xcode 7:
cd /Applications/Xcode.app/Contents/Developer/Applications
open -n Simulator.app
open -n Simulator.app
Every time we use the open -n Simulator.app with a simulator already running, it will launch a new simulator with error message "Unable to boot device in current state: Booted" Just click "OK" and then from hardware->device select any other device for the simulator and it will be launched!
![](https://lh5.googleusercontent.com/-vQu0yAkhpYw/V6RdZqQ7sOI/AAAAAAAAAc8/C4giVTHjMt8voSDwkmD0vc65urAlq7dMACL0B/w699-h603-no/Screen%2BShot%2B2016-08-05%2Bat%2B2.58.46%2BPM.png)
![](https://lh3.googleusercontent.com/-z9Uz2HUcptI/V6RdZwagCUI/AAAAAAAAAc8/6CJMjJ2WMvwHAKsfeh1elfx2YaEI5-0LACL0B/w918-h603-no/Screen%2BShot%2B2016-08-05%2Bat%2B2.59.06%2BPM.png)
![](https://lh4.googleusercontent.com/-YpNnKeeVGzo/V6RgmVeMFuI/AAAAAAAAAdc/nAhOxuYjDacDSdn-HiVvxBXQovVrv_sdACL0B/w807-h603-no/Screen%2BShot%2B2016-08-05%2Bat%2B3.16.31%2BPM.png)
After launching these simulator instances we can run from xcode with a new simulator and only on that simulator will xcode debugging work.
Also to run your application on a particular simulator, first the app must be installed from xcode on that simulator.
0 Comment(s)