Quantcast
Channel: Active questions tagged cocoapods - Stack Overflow
Viewing all articles
Browse latest Browse all 1024

Installing CocoaPods dependencies with New Architecture. Error Installing CocoaPods Dependencies in React Native Project (MacOS 12.7.6, Xcode 14.2)

$
0
0

I am trying to create a new React Native project on my Mac (macOS 12.7.6, Xcode 14.2) using the following command:npx @react-native-community/cli init ProjectNameHowever, during the process, I am encountering the following error:Installing CocoaPods dependencies with New Architecture (this may take a few minutes)error warn Multiple Podfiles were found: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.16.2/lib/cocoapods-core/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". You can learn more about it here: https://github.com/react-native-community/cli/blob/master/docs/configuration.md

[!] [Codegen] warn: using experimental new codegen integrationerror Installing CocoaPods failed.

I tried following steps to resolve this issue:i tried this npx react-native init testproject --skip-install

cd testproject

yarn install

cd ios

bundle install

bundle exec pod install

and also sudo gem install cocoapods

arch -arm64 bundle install

arch -arm64 bundle exec pod install

I’m still facing the error during bundle exec pod install, even after trying the above steps. The error mentions multiple Podfiles and an experimental codegen integration.

How can I resolve this issue with CocoaPods in my React Native project? IS this error becuase of react-native-community/cli command? Any help would be appreciated!


Viewing all articles
Browse latest Browse all 1024

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>