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

前端 未结 2 1917
逝去的感伤
逝去的感伤 2021-02-14 19:53

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

相关标签:
2条回答
  • 2021-02-14 20:35

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

    0 讨论(0)
  • 2021-02-14 20:52

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

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

    0 讨论(0)
提交回复
热议问题