upgrade-support
upgrade-support copied to clipboard
From 0.63 to 0.67:debug fine but crash when release.Requiring unknown module "34". 34 is InitializeCore
Environment
info Fetching system and libraries information... System: OS: macOS 12.5.1 CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz Memory: 182.91 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 12.12.0 - /usr/local/bin/node Yarn: 1.22.0 - /usr/local/bin/yarn npm: 6.11.3 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 26, 28, 29, 30 Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.3 System Images: android-29 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7583922 Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild Languages: Java: 1.8.0_91 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.67.0 => 0.67.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Things I’ve done to figure out my issue
Upgrade from 0.64 to 0.67. Debug normal, crash after packaging.
Upgrading version
Upgrade from 0.64 to 0.67
Description
I can see from the crash logs I collected:and 34
name __NSCFString * @"RCTFatalException: Unhandled JS Exception: Requiring unknown module \"34\".\n\nh@/var/mobile/Containers/Data/Application/BD7574B0-403E-424C-B213-B9853400B1B8/Documents/patch/common/common.ios.jsbundle:1:1418\nd@/var/mobile/Containers/Data/Application/BD7574B0-403E-424C-B213-B9853400B1B8/Documents/patch/common/common.ios.jsbundle:1:959\nglobal code@/var/mobile/Containers/Data/Application/BD7574B0-403E-424C-B213-B9853400B1B8/Documents/patch/common/common.ios.jsbundle:290:4" 0x0000000107753f00
And according to my custom createModuleIdFactory method analysis, 34 corresponds to "InitializeCore.js"