본문 바로가기

os/mac OS X

mac OS X 업데이트 후 xcrun: error: invalid active developer path 발생시 해결방법

상황


맥 OS 다크모드가 추가 됐다고 Mojave 10.14.16 로 업데이트 한 후 터미널 명령 사용 시 경로에 xcrun이 없다고 하네요.

$ git 
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

해결방법


xcrun은 xcode command Line Tools에 있으므로 설치합니다. xcode를 설치하면 command Line Tools를 포함하지만 용량이 몇기가나 되는 xcode를 설치할 필요는 없습니다.

$ xcode-select --install
xcode-select: note: install requested for command line developer tools

참고링크


https://apple.stackexchange.com/questions/209624/how-to-fix-homebrew-error-invalid-active-developer-path-after-upgrade-to-os-x