Reputation: 9874
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
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
Reputation: 31
you could open your project in Xcode on mac and choose build target, then build.
Upvotes: 0