iOS - React native

No bundle URL present in react native iOS (Solved)

What is the meaning of ‘No bundle URL present’ in react-native?

What is the meaning of ‘No bundle URL present’ in react-native?

Make sure you’re running a packager server or have include a .jsbundle file in your application
bundle.

Error Building the app in release mode “main.jsbundle does not exist

If you are getting this error in React Native App. you can follow the following steps to fix

Step 1- Run this command on root folder

"build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'"

Step 2:

Open iOS project in Xcode show as following screenshot

Select -> Target → Build Phases

under Copy Bundle Resources click on the plus button as following screenshot.

It will show you the prompt as shown below. Then select the file main.jsbundle and click on the Add button

Step 3:

Try to re-run your app

npx react-native run-ios

or

react-native run-ios

Visited 19 times, 1 visit(s) today

Leave a Reply

Your email address will not be published. Required fields are marked *