How to: Open Different iOS Simulator Devices
How to: Open Different iOS Simulator Devices

How to: Open Different iOS Simulator Devices

Date
Jun 20, 2022
Tags
React Native

Hello everyone!

This is going to be a short post
So, today I wanted to test out my app on an iPad - to see what the UI would look like
But I don’t have an iPad and couldn’t figure out how to start the iPad simulator on my laptop
Soon, I was able to open the iPad simulator but it didn’t have expo go installed 😅
 
So here’s what I did (to run expo go or simulator development client on the iPad simulator)
npx react-native run-ios --simulator="iPad Pro (12.9-inch)”
These are the available devices for iOS 14.0 onwards:
npx react-native run-ios --simulator="iPhone 8" npx react-native run-ios --simulator="iPhone 8 Plus" npx react-native run-ios --simulator="iPhone 11" npx react-native run-ios --simulator="iPhone 11 Pro" npx react-native run-ios --simulator="iPhone 11 Pro Max" npx react-native run-ios --simulator="iPhone SE (2nd generation)" npx react-native run-ios --simulator="iPhone 12 mini" npx react-native run-ios --simulator="iPhone 12" npx react-native run-ios --simulator="iPhone 12 Pro" npx react-native run-ios --simulator="iPhone 12 Pro Max" npx react-native run-ios --simulator="iPhone 13 Pro" npx react-native run-ios --simulator="iPhone 13 Pro Max" npx react-native run-ios --simulator="iPhone 13 mini" npx react-native run-ios --simulator="iPhone 13" npx react-native run-ios --simulator="iPod touch (7th generation)" npx react-native run-ios --simulator="iPad Pro (9.7-inch)" npx react-native run-ios --simulator="iPad (9th generation)" npx react-native run-ios --simulator="iPad Air (4th generation)" npx react-native run-ios --simulator="iPad Pro (11-inch) (3rd generation)" npx react-native run-ios --simulator="iPad Pro (12.9-inch) (5th generation)" npx react-native run-ios --simulator="iPad mini (6th generation)"
 

and then, do expo start for your react native (expo) project!

it will automatically download expo go on the device
 

Good luck! 😀