본문 바로가기

개발/React.js

[React-Native] warn Multiple Podfiles were found 에러, Looks like your iOS environment is not properly set 에러 해결

error warn Multiple Podfiles were found: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.11.3/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

✖ Installing CocoaPods dependencies (this may take a few minutes)
error Error: Looks like your iOS environment is not properly set. Please go to https://reactnative.dev/docs/next/environment-setup and follow the React Native CLI QuickStart guide for macOS and iOS.
Error: Error: Looks like your iOS environment is not properly set. Please go to https://reactnative.dev/docs/next/environment-setup and follow the React Native CLI QuickStart guide for macOS and iOS.
    at createFromTemplate (/Users/hyeseungjang/.config/yarn/global/node_modules/@react-native-community/cli/build/commands/init/init.js:169:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.initialize [as func] (/Users/hyeseungjang/.config/yarn/global/node_modules/@react-native-community/cli/build/commands/init/init.js:222:3)
    at async Command.handleAction (/Users/hyeseungjang/.config/yarn/global/node_modules/@react-native-community/cli/build/index.js:140:9)

 

이것때문에 삽질을..... 매우.. 했음...

그런데 정보가 많지 않았다.

 

아래 솔루션으로 해결함.

 

 

출처 - 아폴론세븐 닉네임 훌륭하신분..... 적게 일하고 많이 버세요...

xcode에 switch가 왜 필요한건지는 대체 나도 아직 모르겠음... ㅡㅡ

https://github.com/CocoaPods/CocoaPods/issues/11641

 

Cant install pods when generating new React native project · Issue #11641 · CocoaPods/CocoaPods

When trying to initialize a new React Native project using npx react-native init AwesomeProject When getting to the "installing dependencies" step, it fails telling me Your Ruby version i...

github.com