Open shortdark opened 2 years ago
I thought this was fixed but apparently not. I've just gone through the update helper again and fixed some parts I'd missed.
@shortdark did you ever figure out the solution to this?
Same problem here with CPU Intel. Upgrade RN from 0.63.5 to 0.71. Any solutions or workaround?
Anyone found a solution?
any developments on this issue?
I ended up assuming I'd done something wrong and starting over. Instead of using the upgrade helper I believe I just did the minimum to get it working.
I figured out how to avoid these problems if you have expo in your package,json: to do so make sure to remove all the expo modules from the package then npm install all libraries, and lastly install expo modules and all the expo mods you need . For some reason any package installed after the expo modules will once again break the build.
@gregdevvv your solution do not work for me, I do not have expo.
Same problem here :S
Alright I think I got it solved doing the following:
yarn remove react-native-unimodules (I use yarn on my app)
I think react native now includes the unimodules and the package is deprecated (https://www.npmjs.com/package/react-native-unimodules) . It was creating these libraries conflicts at least on my side. Taking that out fixed the error and successfully built it.
Note that I also had problems with Firebase (after fixing the error on this post) and the way to solve that one would be to also take out the expo-firebase-analytics and installing this one: https://docs.expo.dev/versions/v46.0.0/sdk/firebase-analytics/#additional-configuration-for-ios
And you may also face a small problem with the Noop-file.swift. That one is just to place an empty file inside the ios folder.
There will probably be more dependencies problems depending on what you use. I recommend installing libraries in chuncks and identifying which ones are the broken ones.
I hope this helps someone else. It is been a tough one to tackle.
Environment
-System:
Things I’ve done to figure out my issue
I have also been fixing errors since upgrading.
Upgrading version
0.70.6
Description
I'm attempting to upgrade a react native app from 0.64.2 to 0.70.6 but I am getting errors when I try to build in Xcode, see screenshot.
Full path:
It appears to be connected to
unimodules
. The thing I know that has changed with unimodules is that I've been through and updatedmaven
tomaven-publish
, and changed theuploadArchives
block to:The code in UMReactNativeEventEmitter.m
is declared in RCTBridgeModule.h like this:
At the bottom of UMReactNativeEventEmitter.m, it doesn't like the use of the undeclared modifier
_moduleRegistry
, here is the code in question...Does anyone have any idea what is happening here and how to fix it?
Reproducible demo
Upgrading from 0.64.2 to 0.70.6.