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.
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.
Share Improve this question asked yesterday linzmobilelinzmobile 11 bronze badge New contributor linzmobile is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. 1- Do pod update and then pod install. Check stackoverflow/questions/74080414/… for more results. – Rohit Aggarwal Commented yesterday
1 Answer
Reset to default 0This error is getting due to mismatch versions / misconfiguration of package or dependencies/packages which we used & they are present in node modules so they aren't properly linked with react natives android as well as ios
Try this steps to resolve
- clear project cache & temporary files : rm -rf node_modules && npm install
- inside ios folder remove build and that podfile.lock : cd ios && rm -rf build && rm Podfile.lock
- reinstall pods from scratch : pod install && cd ..
- same for android side : cd android && ./gradlew clean && cd ..
Note : Use the React Native Upgrade Helper to identify necessary changes between your current and target versions.