2oneweek.dev

React Native init시 cocoapod 에러

    Tags

  • React Native

React Native init시 cocoapod 에러 해결하기

Xcode 버전업이 되다 보면 다음과 같은 에러가 발생 할 수 있다.

✖ Installing CocoaPods dependencies (this may take a few minutes) ✖ Installing CocoaPods dependencies (this may take a few minutes) error Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template. Please try again manually: "cd ./rnSample/ios && pod install". CocoaPods documentation: https://cocoapods.org/

하라는 대로 "cd ./rnSample/ios && pod install".를 해도 오류가 발생해 알고보니,

일반적으로는 XcodeCommand line Tools 가 제대로 설정되지 않아서 그렇다.

XCode > Preferences > Location에서 다음과 같이 설정을 변경하도록 하자.

Command line Tools 설정

Written by@2-one-week
현재 블로그 개발 중

GitHubLinkedIn