Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does 'No bundle URL present' mean in react-native/xcode?

I've set up a react native app and want to use xcode to build/run the projectName.xcworkspace file but I run into this error.

I tried the same with a brand new react native project I created without changing anything and I get the same error. What does this mean and how do I solve it?

This is the error

like image 871
Jossif Elefteriadis Avatar asked Jun 29 '26 22:06

Jossif Elefteriadis


2 Answers

This usually means that your app is not connected to your localhost (metro bundler is not running). To solve this, you can try running the following commands: react-native start, then react-native run-ios (this will automatically build the app so there is no need to build it in xcode).

If the problem still persists, then you might have to check your localhost port and make sure that the app is using port 8081.

like image 190
alnln222 Avatar answered Jul 01 '26 20:07

alnln222


run

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

in your root folder

like image 44
Preetika Avatar answered Jul 01 '26 21:07

Preetika



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!