I’m making an attempt to create a brand new React Native challenge on my Mac (macOS 12.7.6, Xcode 14.2) utilizing the next command:
npx @react-native-community/cli init ProjectName
Nonetheless, in the course of the course of, I’m encountering the next error:
Putting in CocoaPods dependencies with New Structure (this will take a couple of minutes)
error warn A number of Podfiles had been discovered: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.16.2/lib/cocoapods-core/Podfile. Selecting ios/Podfile robotically. If you need to pick a unique one, you’ll be able to configure it by way of “challenge.ios.sourceDir”. You’ll be able to be taught extra about it right here: https://github.com/react-native-community/cli/blob/grasp/docs/configuration.md
[!] [Codegen] warn: utilizing experimental new codegen integration
error Putting in CocoaPods failed.
I attempted following steps to resolve this situation:
i attempted this npx react-native init testproject –skip-install
cd testproject
yarn set up
cd ios
bundle set up
bundle exec pod set up
and likewise sudo gem set up cocoapods
arch -arm64 bundle set up
arch -arm64 bundle exec pod set up
I’m nonetheless dealing with the error throughout bundle exec pod set up, even after making an attempt the above steps. The error mentions a number of Podfiles and an experimental codegen integration.
How can I resolve this situation with CocoaPods in my React Native challenge? IS this error becuase of react-native-community/cli command? Any assist can be appreciated!