20 C
Canberra
Saturday, January 18, 2025

ios – Putting in CocoaPods dependencies with New Structure. Error Putting in CocoaPods Dependencies in React Native Undertaking (MacOS 12.7.6, Xcode 14.2)


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!

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles