- pod init 오류
- 다음과 같은 오류가 발생할 시 CocoaPods가 설치되어 있지 않을 수 있으므로 설치한다.
pod init
# 이하 오류 내용
-bash: pod: command not found
- install cocoapods 오류
sudo gem install cocoapods
# 이하 오류 내용
Building native extensions. This could take a while...
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
git --version
# 이하 오류 내용
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
- 처리
# 기존 툴 삭제
sudo rm -rf /Library/Developer/CommandLineTools
# Xcode 설치
xcode-select --install
# 오류 처리 여부 확인
git --version
# CocoaPods 설치
sudo gem install cocoapods
- 참고사항
- 맥 OS를 업데이트 할 때마다 종종 발생한다고 한다.