You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can successfully create an iOS build (using npx react-native run-ios) however the Metro bundler doesn't seem to connect to the app or create the bundle. Before the upgrade I would start Metro in one terminal window via yarn start and then npx react-native run-ios in another terminal window. This would work great and Metro would 'watch' changes and reload the app in the Simulator.
Now, after the upgrade, the connection with the iOS app seems to be no longer there, i.e. the bundle is not created and it doesn't 'watch' any changes to the code.
If I hit 'r' in the Metro window it says
'No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB.'
Everything works fine when I test on Android though using the same workflow - e.g. yarn start in one terminal windown, and npx react-native run-android in another terminal window.
It seems somehow this part of the iOS build has been removed. I'm a bit stuck on why this has happened and how to resolve it.
Reproducible demo
Run yarn startin one terminal window and thennpx react-native run-ios` in another terminal window, and check that Metro creates the bundle and watches for changes.
The text was updated successfully, but these errors were encountered:
Environment
System:
OS: macOS 14.4
CPU: (10) arm64 Apple M2 Pro
Memory: 86.38 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.6.1
path: ~/.nvm/versions/node/v20.6.1/bin/node
Yarn:
version: 1.22.19
path: /opt/homebrew/bin/yarn
npm:
version: 9.8.1
path: ~/.nvm/versions/node/v20.6.1/bin/npm
Watchman:
version: 2024.03.18.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.12.1
path: /Users/phil/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.4
- iOS 17.4
- macOS 14.4
- tvOS 17.4
- visionOS 1.1
- watchOS 10.4
Android SDK: Not Found
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.10671973
Xcode:
version: 15.3/15E204a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.10
path: /usr/bin/javac
Ruby:
version: 2.7.6
path: /Users/phil/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.6
wanted: 0.73.6
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
Things I’ve done to figure out my issue
Upgrading version
From 0.71.17 to 0.73.6
Description
I can successfully create an iOS build (using
npx react-native run-ios
) however the Metro bundler doesn't seem to connect to the app or create the bundle. Before the upgrade I would start Metro in one terminal window viayarn start
and thennpx react-native run-ios
in another terminal window. This would work great and Metro would 'watch' changes and reload the app in the Simulator.Now, after the upgrade, the connection with the iOS app seems to be no longer there, i.e. the bundle is not created and it doesn't 'watch' any changes to the code.
If I hit 'r' in the Metro window it says
Everything works fine when I test on Android though using the same workflow - e.g.
yarn start
in one terminal windown, andnpx react-native run-android
in another terminal window.It seems somehow this part of the iOS build has been removed. I'm a bit stuck on why this has happened and how to resolve it.
Reproducible demo
Run yarn start
in one terminal window and then
npx react-native run-ios` in another terminal window, and check that Metro creates the bundle and watches for changes.The text was updated successfully, but these errors were encountered: