I have been using react native 0.68 version on my new mac m1 pro chip.
My code is working on android but on iOS i am getting "no bundle URL present error".
If i manually create main.jsbundle file and then run it, then the app is working fine but, for that every-time i need to create the bundle file if i am updating my code.
So, any one have face this kind of issue?
3
Answers
I solved by doing this:
Open host file
sudo vi /private/etc/hosts
Add three line if it's not existOpen a terminal window
cd into YOUR_PROJECT/ios
Remove the build folder with
Run
again.
Alternatively, you could open Finder, navigate to YOUR_PROJECT/ios and delete the build folder.
Then run react-native run-ios again.