react-native: [iOS] Simulator does not connect to metro on 0.78.1 with new architecture disabled
Description
Hello!
I am trying to update to 0.78.1, but running into an issue where my dev/debug builds won’t connect to the Metro server when running on an iOS simulator. Not having this issue with Android. It also appears to be an issue with the old architecture. I have validated this by creating a brand new react native project which works, but then I can reproduce this issue when I disable the new architecture on that same project.
Some other notes to provide is that I do not have this issue with React Native 0.78.0. But unfortunately due to the shadow issue on Android (fix included in 0.78.1), I cannot use that version. I also cannot enable the new architecture in my project due to some required third party dependencies not yet updated to support it.
Any help for this would be greatly appreciated!
Steps to reproduce
- Create a new project using the cli
- In the Podfile, add
ENV['RCT_NEW_ARCH_ENABLED'] = '0'at the top - Re-install the pods
- Run
react-native start - Build and run the iOS app on a simulator
React Native Version
0.78.1
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
System:
OS: macOS 15.3.2
CPU: (14) arm64 Apple M4 Pro
Memory: 253.77 MB / 48.00 GB
Shell:
version: 3.2.57
path: /bin/bash
Binaries:
Node:
version: 18.20.1
path: ~/.nvm/versions/node/v18.20.1/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.5.0
path: ~/.nvm/versions/node/v18.20.1/bin/npm
Watchman:
version: 2025.02.17.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /.rvm/gems/ruby-3.3.5/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK:
API Levels:
- "35"
Build Tools:
- 34.0.0
- 35.0.0
- 35.0.1
System Images:
- android-35 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.23726.103.2422.13103373
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 21.0.5
path: /usr/bin/javac
Ruby:
version: 3.3.5
path: /.rvm/rubies/ruby-3.3.5/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.78.1
wanted: 0.78.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: false
Stacktrace or Logs
n/a
Reproducer
https://github.com/lxr-mwhite/rn-repro-078-1
Screenshots and Videos
I can see the following message on my simulator when the app start up, but it never makes a connection to the metro server.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 19
- Comments: 31 (2 by maintainers)
Commits related to this issue
- note: revert to 0.78.0 fixes the issue for ios, see https://github.com/facebook/react-native/issues/50168 — committed to christianfroehlich/rn-78.1-issue-old-arch-ios-white-screen by christianfroehlich 2 years ago
I can confirm this issue as well.
https://www.npmjs.com/package/react-native/v/0.78.2
There is fix for the issue: https://github.com/facebook/react-native/pull/49930 and it will be part of 0.78.2. At the moment there are two options:
Yep, this is a critical issue, on the old architecture and the latest version 0.78.1 react native app on iOS just doesn’t work
This is pretty bad I hope they fix it very soon
I believe this pick request should fix this bug once merged. https://github.com/reactwg/react-native-releases/issues/873
@dukebui you can upgrade to 0.78.2 it’s fixed there
I’m curious, is this merged in master as well? For 0.79.0?
Same issue
Same issue. Reverting to 0.78.0 resolved the issue.