Upgrade 0.62.2 ==> 0.63.2: fatal error: 'UMReactNativeAdapter/UMModuleRegistryAdapter.h' file not found
See original GitHub issueEnvironment
info Fetching system and libraries information...
System:
OS: macOS 10.15.3
CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 136.74 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.13.1 - ~/.nvm/versions/node/v12.13.1/bin/node
Yarn: 1.22.4 - ~/Documents/youpendo-app-bareworkflow/node_modules/.bin/yarn
npm: 6.12.1 - ~/.nvm/versions/node/v12.13.1/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK:
API Levels: 28, 29
Build Tools: 28.0.3, 29.0.2
System Images: android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6392135
Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_232 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: ^4.8.0 => 4.10.0
react: ^16.13.1 => 16.13.1
react-native: ^0.63.2 => 0.63.2
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Upgrading version
Upgrade from 0.62.2
to 0.63.2
Description
My RN project was running on 0.62.2
without any issues. I have upgraded to 0.63.2
and now I am getting this error:
In file included from /Users/user/Documents/my-app-/ios/MyApp/main.m:10:
/Users/user/Documents/my-app-/ios/MyApp/AppDelegate.h:9:9: fatal error: 'UMReactNativeAdapter/UMModuleRegistryAdapter.h' file not found
#import <UMReactNativeAdapter/UMModuleRegistryAdapter.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Remarks
- Our project was built using
expo managed workflow
, then after a few months, we ejected out of expo, upgraded to0.62.2
, and have developed in bare workflow. - I checked this and saw that our project is a bit different even on
0.62.2
! Maybe because it was an expo managed workflow before. - When running
npx react-native upgrade
, I got this output:
info No version passed. Fetching latest...
info Fetching diff between v0.62.2 and v0.63.2...
info Applying diff...
warn Excluding files that exist in the template, but not in your project:
- .flowconfig
- ios/MyApp-tvOSTests/Info.plist
error Excluding files that failed to apply the diff:
- android/app/build.gradle
- android/build.gradle
- android/gradle.properties
- android/gradle/wrapper/gradle-wrapper.jar
- android/gradle/wrapper/gradle-wrapper.properties
- android/gradlew.bat
- ios/Podfile
- ios/MyApp/AppDelegate.m
- ios/MyApp/Base.lproj/LaunchScreen.xib
Please make sure to check the actual changes after the upgrade command is finished.
You can find them in our Upgrade Helper web app: https://react-native-community.github.io/upgrade-helper/?from=0.62.2&to=0.63.2
error Automatically applying diff failed. We did our best to automatically upgrade as many files as possible
warn Continuing after failure. Some of the files are upgraded but you will need to deal with conflicts manually
- If you need more info, feel free to ask and I will share the content of other files here.
Reproducible demo
npx react-native upgrade
rm -rf podfile.lock
- Remove the content of
Podfile
and replace it with:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
target 'MyApp' do
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
use_flipper!
post_install do |installer|
flipper_post_install(installer)
end
end
yarn install && cd ios && pod install && cd .. && npx react-native run-ios
Issue Analytics
- State:
- Created 3 years ago
- Comments:10
Top Results From Across the Web
After upgrade 0.62.2 to 0.63.2, build fails with LaunchScreen ...
I tried all of these steps today on MacOS Monterey Version 12.4 but still "error: Build input file cannot be found: 'Users/ken/Documents/ ...
Read more >Upgrading a React Native app from 0.60 to 0.65 - YouTube
Jamon attempts to upgrade a React Native app from 0.60 to 0.65 with ... mixed results. -- Watch live at https://www.twitch.tv/jamonholmgren.
Read more >Detox build is failing by throwing YogaKit.modulemap' fatal ...
I came across this question by researching a missing YogaKit.modulemap not found kind of error (sorry I don't have the exact error) which...
Read more >React Native SDK Troubleshooting - Visual Studio App Center
h ' file not found. This error appears when RN core libraries aren't referenced correctly, which can be caused by different kinds of...
Read more >Upgrading a 16 months old react-native project
This is not the first time I've upgraded any react-native projects. ... MKTouchableManager.m:11:9: error: 'UIView+React.h' file not found ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve got the same error… My project was on 0.61.5 and have been ejected from expo.
I have the same error, my react-native version is 0.63.3