react-native: run application on specific ios simulator
Nguyễn Hữu Hiếu
Posted on June 9, 2022
This post will guide you how to run your application on specific ios simulator
# list all ios simulator
xcrun simctl list devices
# == Devices ==
# -- iOS 13.3 --
# iPhone 8 (F71514A5-9B42-4FFF-93B0-AAAA)
# iPhone 8 Plus (EE9676FF-8508-4B7C-B955-BBBB)
# -- iOS 13.6 --
# iPhone 8 (F71514A5-9B42-4FFF-93B0-XXXX)
# iPhone 8 Plus (EE9676FF-8508-4B7C-B955-YYYY)
Run with device name
// package.json
{
"scripts": {
"start:iphone8": "react-native run-ios --simulator='iPhone 8'"
// will choose F71514A5-9B42-4FFF-93B0-AAAA
}
}
Run with uuid
- In some case you want to specific version of iOS (13.3, 13.6)
// package.json
{
"scripts": {
"start:iphone8Plus": "react-native run-ios --udid EE9676FF-8508-4B7C-B955-YYYY"
}
}
Run on the real device
npx react-native run-ios --configuration Release --device 'Boss's iPhone'
💖 💪 🙅 🚩
Nguyễn Hữu Hiếu
Posted on June 9, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
reactnative Implementing Root Detection and File Existence Security Checks in React Native (iOS) - 2
November 11, 2024
reactnative How to Deploy Multiple Versions of Your React Native App to TestFlight Using Xcode Cloud
October 13, 2024
reactnative Integrating Native iOS Code with React Native Using Swift: A Comprehensive Guide
October 4, 2024
reactnative React Native: Multi-Environment/Flavor Setup (App Icon, App Name, GoogleService.json) for Android [Latest] - 1
October 25, 2024