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 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.
run
react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'
in your root folder
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With