Search code examples
react-nativereact-native-cli

react-native run-ios without build


How can I run the application without rebuilding the project (of course the app is installed on the relevant simulator from previous run)

I run the application on iOS (for instance) like this:

react-native run-ios --simulator='iPhone 8'


Solution

  • Thanks to this post, I found this command:

    xcrun simctl launch booted <APP_BUNDLE_ID>

    It will launch the application which pre-installed on the current running simulator (if we have 2 or more simulators running simultaneously, we will need to pick one by its simulator ID).