xcrun: error: invalid active developer path 에러 해결



개요

어느날 뜬금없이 찾아온 에러.

image-20210227225122834

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

깃에 파일을 업로드하려고 git add . 를 사용하니 해당 오류가 떴다.

원인

Mac OS에서 업데이트가 진행될때마다 자주 발생되는 xcode cli 관련 이슈이다.

해당 경우에 git 을 비롯한 다수 개발툴들이 다 에러를 뱉게 된다.

(make, gcc 등..)

해결

xcode-select --install

terminal 에서 해당 명령어로 xcode cli 만 따로 설치하여 문제를 해결한다.




© 2019. by mintheon

Powered by mintheon