Run React Native Project on Specific iOS Simulator Device in MAC

In MAC computer Things are a bit different than Windows PC because when we develop apps in MAC using Xcode for iOS devices for react native than it’ll automatically starts the highest version iOS simulator. Which sometimes developer dose not required. There are almost 12 + iOS simulators devices available. So in Today’s tutorial we would learn about changing default iOS simulator device for react native and Run React Native Project on Specific iOS Simulator Device in MAC Example Tutorial.

Contents in this project Run React Native Project on Specific iOS Simulator Device in MAC:

1. In React Native we would use react-native run-ios --simulator="Simulator Name" command to run react native project in specific iOS emulator device. In above command we have to pass the simulator name which shows at top of simulator. So first start your iOS simulator in MAC. In my case my iOS emulator device name is iPhone 5s with 12.1 version.

Run React Native Project on Specific iOS Simulator Device in MAC

2. Open react native project folder in Terminal like i did in below screenshot.

3. Execute react-native run-ios --simulator="iPhone 5s"  command. Here iPhone 5s is my simulator name. In your case here you should pass your simulator name. Now hit Enter.

4. It will take some time to compile the complete program. After few minutes your project will be successfully loaded in already opened simulator.

Run React Native Project on Specific iOS Simulator Device in MACScreenshot of iOS simulator after successfully running the project:

Here you go guys. Using this method you can easily run any react native project in MAC in specific iOS simulator device 🙂 .

2 Comments

  1. nice video sir please make tutorial on firebase chat app

Leave a Reply

Your email address will not be published. Required fields are marked *