App노자

[Mac] xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 본문

Android/Framework, 이슈, 환경셋팅

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

앱의노예 2023. 8. 27. 17:06

1. 개요


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

MacOS의 주요 업데이트 이후 Terminal에서 git을 사용할 때 가끔 위에 같은 error현상이 발생하면서

Terminal을 사용할 수 없는 현상이 발생한다

xcrun은 명령줄에서 개발자 도구를 찾거나 실행할 수 있는 방법을 제공하는 명령이며

현재 활성화된 개발자 도구의 경로가 유효하지 않다는 오류를 출력하고 있다

2. 해결 방법


xcode-select --install

워의 명령어를 실행시켜 주면 간단하게 해결된다

xcode-select --install를 입력하면 위와 같이 도구를 설치하겠냐는 팝업이 뜨고 설치를 진행하면 

해당 문제는 해결된다