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?
CodePudding user response:
Open a terminal window cd into YOUR_PROJECT/ios Remove the build folder with
rm -r build
Run
react-native run-ios
again.
Alternatively, you could open Finder, navigate to YOUR_PROJECT/ios and delete the build folder.
Then run react-native run-ios again.
CodePudding user response:
--> open ios file project with xcode
--> in project bundle delete main.jsbundle file
--> add new empty file by main.jsbundle name
-->Run command: react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios
--> now react-native run-ios