Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to run multiple iOS Simulators at once? [duplicate]

For example, to test features that have several users interacting. All I've come up with is multiple OS X VM's with an iOSS in each, but that seems like a sledgehammer missing the obvious right in front of me?

like image 334
Yuri Gadow Avatar asked Apr 29 '11 17:04

Yuri Gadow


People also ask

How many simulator instances can run for an instance of Xcode?

The default behaviour does not allow to run more than one simulator instance from XCode. But it is possible to do it from the command line. For this change the directory into Developer/Applications in XCode. app package and run simulator with the "open" command.

How do I open two simulators in Xcode?

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.

How do I run a specific iOS simulator?

Specifying a device​ You can specify the device the simulator should run with the --simulator flag, followed by the device name as a string. The default is "iPhone 13" . If you wish to run your app on an iPhone SE (2nd generation), run npx react-native run-ios --simulator='iPhone SE (2nd generation)' .


1 Answers

AFAICT, it does not support multiple instances running at the same time.

I tried two methods, but both failed.

$ open -n /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app
LSOpenURLsWithRole() failed with error -10829 for the file /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app.

Using an alias (http://forums.creativecow.net/thread/71/860074) brings up a dailog box saying "Only one iOS Simulator can run at a time. Please quit iOS Simulator and try again."

like image 55
Jeff Ames Avatar answered Oct 07 '22 22:10

Jeff Ames