How to choose an iPhone model simulator to launch my responsive application?

I am working on a response of my own application and I am testing on iOS Simulator.

However, it always works on the iPhone 6, and I don’t know how I can switch to other iPhone models such as iPhone 6 Plus or 5.

I can start another device manually by going to Simulator β†’ Hardware β†’ Device β†’ iOS β†’ iPhone 6 Plus.

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

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

+5
source share
2 answers

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

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

+17
source

You can open your project in Xcode on Mac and select the build target and then create.

0
source

All Articles