Description
After upgrading RN from 74.1 to 76.0 I get the following error when launching the app in debug from Xcode :
libc++abi: terminating with uncaught exception of type std::runtime_error: Feature flags were accessed before being overridden: fuseboxEnabledRelease
The app works fine on Android. I tried to launch a template app (npx @react-native-community/cli@latest init Test) and it starts just fine. So I think it is a config issue on my side. My problem is that I don't know where to start in order to debug on this type of deep issue (c++ error). Since it is a config issue it is really complicated for me to setup a reproducer, I striped down my project to keep the bare minimum and provided the link to this.
My question is : if this error is not known, how to debug this type of error ?
Steps to reproduce
- Upgrade app from from 74.1 to 76.0.
- Compile and start from XCode.
- App crashes at startup.
React Native Version
0.76.0
Affected Platforms
Runtime - iOS
Output of npx react-native info
System:
OS: macOS 15.0.1
CPU: (8) arm64 Apple M1 Pro
Memory: 268.17 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 21.1.0
path: ~/.nvm/versions/node/v21.1.0/bin/node
Yarn:
version: 1.22.19
path: /opt/homebrew/bin/yarn
npm:
version: 10.2.0
path: ~/.nvm/versions/node/v21.1.0/bin/npm
Watchman:
version: 2024.09.23.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /Users/benjaminbeau/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.0
- iOS 18.0
- macOS 15.0
- tvOS 18.0
- visionOS 2.0
- watchOS 11.0
Android SDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.23339.11.2421.12483815
Xcode:
version: 16.0/16A242d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.20.1
path: /usr/bin/javac
Ruby:
version: 3.2.2
path: /Users/benjaminbeau/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 14.1.1
wanted: ^14.1.1
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.76.0
wanted: 0.76.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: false
newArchEnabled: true
Stacktrace or Logs
2024-10-24 11:50:24.310785+0200 surloMobile[53882:2265559] [Mapbox] [Info, common]: Using Mapbox Common SDK v24.5.0(edbe9cbfd)
2024-10-24 11:50:24.315740+0200 surloMobile[53882:2265559] [Mapbox] [Info, maps-core]: Using Mapbox Core Maps SDK v11.5.0(e548448702)
2024-10-24 11:50:24.366175+0200 surloMobile[53882:2265559] [TSBackgroundFetch load]: (
)
2024-10-24 11:50:24.366718+0200 surloMobile[53882:2265559] [TSBGAppRefreshSubscriber load]: {
}
2024-10-24 11:50:24.405722+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] Looking up debug dylib relative path
2024-10-24 11:50:24.410527+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] Found debug dylib relative path string `surloMobile.debug.dylib`
2024-10-24 11:50:24.410544+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] Looking up debug dylib entry point name
2024-10-24 11:50:24.410552+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] No debug dylib entry point name defined.
2024-10-24 11:50:24.410557+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] Looking up debug dylib install name
2024-10-24 11:50:24.410565+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] Found debug dylib install name string `@rpath/surloMobile.debug.dylib`
2024-10-24 11:50:24.410573+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] Looking for Previews JIT link entry point.
2024-10-24 11:50:24.474952+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] No Previews JIT entry point found.
2024-10-24 11:50:24.474990+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] Gave PreviewsInjection a chance to run and it returned, continuing with debug dylib.
2024-10-24 11:50:24.474998+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] Looking for main entry point.
2024-10-24 11:50:24.475008+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] Opening debug dylib with '@rpath/surloMobile.debug.dylib'
2024-10-24 11:50:24.475049+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] Debug dylib handle: 0x200d5d4c0
2024-10-24 11:50:24.475060+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] No entry point found. Checking for alias.
2024-10-24 11:50:24.475072+0200 surloMobile[53882:2265559] [PreviewsAgentExecutorLibrary] Calling provided entry point.
2024-10-24 11:50:24.685208+0200 surloMobile[53882:2265841] [[FirebaseMessaging]] 11.4.0 - [FirebaseMessaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
2024-10-24 11:50:24.829490+0200 surloMobile[53882:2265843] [connection] nw_socket_handle_socket_event [C1.1:2] Socket SO_ERROR [61: Connection refused]
2024-10-24 11:50:24.831571+0200 surloMobile[53882:2265843] [connection] nw_socket_handle_socket_event [C1.2:2] Socket SO_ERROR [61: Connection refused]
2024-10-24 11:50:24.832102+0200 surloMobile[53882:2265843] Connection 1: received failure notification
2024-10-24 11:50:24.832246+0200 surloMobile[53882:2265843] Connection 1: failed to connect 1:61, reason -1
2024-10-24 11:50:24.832280+0200 surloMobile[53882:2265843] Connection 1: encountered error(1:61)
2024-10-24 11:50:24.833721+0200 surloMobile[53882:2265843] Task <8A0B759E-48AB-4B06-A42D-5B1D65AC6FB1>.<1> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
2024-10-24 11:50:24.841309+0200 surloMobile[53882:2265842] Task <8A0B759E-48AB-4B06-A42D-5B1D65AC6FB1>.<1> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x2814747b0 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: lo0, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <8A0B759E-48AB-4B06-A42D-5B1D65AC6FB1>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <8A0B759E-48AB-4B06-A42D-5B1D65AC6FB1>.<1>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=http://localhost:8081/status, NSErrorFailingURLKey=http://localhost:8081/status, _kCFStreamErrorDomainKey=1}
2024-10-24 11:50:24.858759+0200 surloMobile[53882:2265559] [HealthKit] Background observers added to the app
libc++abi: terminating with uncaught exception of type std::runtime_error: Feature flags were accessed before being overridden: fuseboxEnabledRelease
Reproducer
https://github.com/benjamin-beau/RN_crash
Screenshots and Videos
No response
Description
After upgrading RN from 74.1 to 76.0 I get the following error when launching the app in debug from Xcode :
The app works fine on Android. I tried to launch a template app (
npx @react-native-community/cli@latest init Test) and it starts just fine. So I think it is a config issue on my side. My problem is that I don't know where to start in order to debug on this type of deep issue (c++ error). Since it is a config issue it is really complicated for me to setup a reproducer, I striped down my project to keep the bare minimum and provided the link to this.My question is : if this error is not known, how to debug this type of error ?
Steps to reproduce
React Native Version
0.76.0
Affected Platforms
Runtime - iOS
Output of
npx react-native infoStacktrace or Logs
Reproducer
https://github.com/benjamin-beau/RN_crash
Screenshots and Videos
No response