iosreact-native

React-Codegen error upgrading to RN 0.77.0


After a break of over 6 months I am updating a React Native app to use version 0.77.0 of react-native. It's all good till I was forced to upgrade the react-native-contacts library as well. When I upgrade and run pod install I get the below error:

Installing React-Codegen (0.1.0)

[!] Error installing React-Codegen [!] /usr/bin/curl -f -L -o /var/folders/cp/4v2xr6ns3kd9j6dxsnzm1rq1krlcbq/T/d20250217-44369-s4mom0/file.tgz https://artifactory/api/pods/cocoa-remote/pod/git/sjnscythe/React-Codegen/0.1.0 --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.15.2 cocoapods-downloader/2.1' --ssl-no-revoke

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0

I am looking for a fix for this if anyone's faced this issue before. I am building the code for iOS only now. Any help is much appreciated.


Solution

  • For anyone facing this issue, upgrading to 0.78.0 and running pod install using the old architecture works for now. Codegen has not been handled properly across the different libraries which was causing the issue. Building with the old architecture for now. You can install pods along with flag RCT_NEW_ARCH_ENABLED=0.