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?
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.
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.
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)' .
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."
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