Open iOS iPad simulator with React Native

When testing the React Native react-native run-iosapp, an iPhone simulator opens.

You can change the virtual device on the iPad in the Simulator options, but the React Native application does not appear in the list of installed applications.

Is there a way to open the iPad simulator from the CLI?

+4
source share
1 answer

--simulator the flag is what you are looking for

For example, it react-native run-ios --simulator 'iPad 2'will launch the application on the iPad 2 simulator.

As a node side, if you need to get a list of available simulators with their names, use xcrun simctl list devices

+11
source

All Articles