最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ios - React-Codegen error upgrading to RN 0.77.0 - Stack Overflow

programmeradmin3浏览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.

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
Add a comment  | 

1 Answer 1

Reset to default 0

This 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

  1. clear project cache & temporary files : rm -rf node_modules && npm install
  2. inside ios folder remove build and that podfile.lock : cd ios && rm -rf build && rm Podfile.lock
  3. reinstall pods from scratch : pod install && cd ..
  4. 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.

发布评论

评论列表(0)

  1. 暂无评论