react-native: React native iOS App Crash- After Upgrade to 0.76.1
Description
I had 2 issues
Build got crashed after the splash screen in testflight (Release version) “react-native”: “^0.75.1” Xcode Version 16.0 Mac os version 15.1
After upgrade build got crashed in debug mode also cant able to run my app “react-native”: “^0.76.1” Xcode Version 16.0 Mac os version 15.1
Initially i thought it was because of splash screen i removed that also facing the same crash i dont know why
but when i installed the previous version “react-native”: “0.70.6”, it is working fine in the dev and release version
Note i updated almost all the package to most recent version is anything releated to architechture something
Here is my package json
"dependencies": {
"@react-navigation/native": "^7.0.0",
"@react-navigation/stack": "^7.0.0",
"hermes-engine": "^0.11.0",
"react": "18.3.1",
"react-native": "0.76.1",
"react-native-reanimated": "^3.16.1",
"react-native-safe-area-context": "^4.14.0",
"react-native-screens": "^4.0.0",
"realm": "^20.0.0",
"redux": "^5.0.1",
"redux-observable": "^3.0.0-rc.2",
"redux-thunk": "^3.1.0",
"reselect": "^5.1.1",
"rxjs": "^7.8.1",
}
Here is my Pod file
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '14.0'
install! 'cocoapods', :deterministic_uuids => false
# Flags change depending on the env values.
flags = get_default_flags()
target 'mobilecheck' do
config = use_native_modules!
# use_react_native!(:path => config[:reactNativePath])
use_react_native!(
:path => config[:reactNativePath],
# Hermes is now enabled by default. Disable by setting this flag to false.
# Upcoming versions of React Native may rely on get_default_flags(), but
# we make it explicit here to aid in the React Native upgrade process.
:hermes_enabled => true,
:fabric_enabled => flags[:fabric_enabled],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => FlipperConfiguration.enabled,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'react-native-dynatrace', :
Steps to reproduce
I did all possible ways deleted node modules package.lock json podfile and pod.lock json and reinstalled again
React Native Version
0.76.0
Output of npx react-native info
System:
OS: macOS 15.1
CPU: (10) arm64 Apple M1 Pro
Memory: 105.08 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.4.1
path: ~/.nvm/versions/node/v22.4.1/bin/node
Yarn: Not Found
npm:
version: 10.8.2
path: ~/.nvm/versions/node/v22.4.1/bin/npm
Watchman:
version: 2024.10.28.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/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: 2022.3 AI-223.8836.35.2231.10671973
Xcode:
version: 16.0/16A242d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 21.0.1
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.1.2
wanted: ^15.1.2
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: false
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: true
Screenshots and Videos
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 39 (12 by maintainers)
Commits related to this issue
- Be less strict with method parsing of TurboModule Interop Layer (#49072) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49072 We have instance of apps crashing when en... — committed to facebook/react-native by cipolleschi 2 years ago
- Be less strict with method parsing of TurboModule Interop Layer (#49072) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49072 We have instance of apps crashing when en... — committed to facebook/react-native by cipolleschi 2 years ago
- Be less strict with method parsing of TurboModule Interop Layer (#49072) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49072 We have instance of apps crashing when en... — committed to facebook/react-native by cipolleschi 2 years ago
- Be less strict with method parsing of TurboModule Interop Layer (#49072) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49072 We have instance of apps crashing when en... — committed to facebook/react-native by cipolleschi 2 years ago
- Be less strict with method parsing of TurboModule Interop Layer (#49072) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49072 We have instance of apps crashing when en... — committed to linhandev/react-native-core by cipolleschi 2 years ago
Have you found a solution for this? I’m getting the below as well.
Updated my appdelegate.m file it is fixed my crash
#import “AppDelegate.h” #import <React/RCTBundleURLProvider.h> #import “RNSplashScreen.h” #import <React/RCTDevMenu.h> // Ensure this import is correct
@implementation AppDelegate
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.moduleName = @“MyApp”;
self.initialProps = @{};
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
(NSURL *)sourceURLForBridge:(RCTBridge *)bridge { return [self bundleURL]; }
(NSURL *)bundleURL { #if DEBUG return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@“index”]; #else return [[NSBundle mainBundle] URLForResource:@“main” withExtension:@“jsbundle”]; #endif }
@end
Hi @cipolleschi - I just updated to “react-native”: “^0.76.5” and still getting the issue. See below screenshot.
It’s really hard to help out without a reproducer and a stack trace.
If the crash is the same one reported here by @maxckelly: https://github.com/facebook/react-native/issues/47587#issuecomment-2475137236 This has been fixed by this commit https://github.com/facebook/react-native/commit/7c60a65aced91b5c2d5ac08846e2869b475c3b31 and it will be picked in the 0.76.4 release.
For other crashes, we need more information of what’s happening in your app, or we can’t provide any guidance.