美文网首页
react-native 指定设备

react-native 指定设备

作者: 朱传武 | 来源:发表于2021-06-12 05:00 被阅读0次

You can specify the device the simulator should run with the --simulator flag, followed by the device name as a string. The default is "iPhone 11". If you wish to run your app on an iPhone SE (1st generation), run

npx react-native run-ios --simulator="iPhone SE (1st generation)

".

The device names correspond to the list of devices available in Xcode. You can check your available devices by running xcrun simctl list devices from the console.

相关文章

网友评论

      本文标题:react-native 指定设备

      本文链接:https://www.haomeiwen.com/subject/qhubeltx.html