I'm starting a brand new project with:
npx react-native init test --template react-native-template-typescript
Then I start the project using yarn ios
. That results in an error message saying:
No bundle URL present
It seems like I can force it to work by following these 3 steps:
- Add the following line inside the scripts of the package.josn "build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'"
- Run yarn build:ios
- Open your Xcode select project then click of project name go to the build faces then click on copy build resources as your main.jsbundle there
But the experience from there and onward is just horrible, reloading the app or doing anything will result in a long load and error messages such as:
"Timed out waiting for modules to be invalidated"
"Could not connect to development server"
The connection between the bundler and the simulator seems broken. I'm using the latest and stable version of everything. Anybody else with a similar problem?
It's working fine if I use a iOS device and also android works just fine on device/emulator.
- React-native version: 0.63.3
- XCode version: 12.1
- MacOS: Catalina Version 10.15.7