본문 바로가기
카테고리 없음

macOS에서 xcrun error 에러 해결 방법

by A6K 2021. 5. 4.

macOS의 신규 버전을 설치하거나 업데이트를 진행하면 가끔씩 xcrun 관련 에러가 발생하곤한다. 

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

특히 git을 이용할 때 이 에러가 자주 발생한다.

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

macOS의 신규 버전으로 업그레이드를 하면서 Xcode Command Line Tool 관련 라이브러리 설정들이 꼬인 것 같다. XCode를 사용하고 있지 않은데 이런 문제가 발생하는게 의아하지만 간단한 방법으로 해결할 수 있다.

xcode-select --install

다시 설치하면 된다.

$ git --version
git version 2.21.0 (Apple Git-122.2)

정상적으로 git 을 사용할 수 있다.

댓글