Joon
Joon

Reputation: 9874

How to choose which iPhone model simulator to run my react native app?

I am working on react native app, and I do testing on iOS Simulator.

However, it always runs on iPhone 6, and i don't know how I can switch to other iPhone models like iPhone 6 Plus or 5.

I can start a different device manually by going to Simulator -> Hardware -> Device -> iOS -> iPhone 6 Plus.

But the app is installed only on iPhone 6, and it always starts iPhone 6 when I run react-native run ios.

How can I change it so that I can run the app on different iOS Simulator devices?

Upvotes: 9

Views: 5018

Answers (2)

Daniel Basedow
Daniel Basedow

Reputation: 13396

react-native run-ios --simulator="iPhone 6s Plus"

As far as I can tell there is currently no way to specify the OS.

Upvotes: 27

Nicolas Delfino
Nicolas Delfino

Reputation: 31

you could open your project in Xcode on mac and choose build target, then build.

Upvotes: 0

Related Questions