개요
요즘 윈도우 노트북으로 개발을 주로 해서 오랜만에 MacBook M1 으로 해보려고 했더니 다음과 같은 에러가 계속 발생했다.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
공부하던 git 레포지토리를 clone 받아 사용하려 했더니 계속 거절되고 터미널에서 뭘 하려고 해도 위와 같은 에러만 계속 뜨게 된 것이다.
그래서 이런 Mac OS 에서만 나는 에러가 났을 때 헤메지 않기 위해서 정리를 해보고자 했다.
해결방법
xcode-select --install
해당 명령어를 입력하면 아래와 같은 팝업 창이 뜨게 되고 설치를 누르면 된다.
설치가 완료 되었다면 터미널에서 git 명령어를 쳐서 에러가 뜨지 않는다면 설정이 완료된 것이다.
'Dev > Etc' 카테고리의 다른 글
[Mac] Docker Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 에러 해결하기 (0) | 2023.11.26 |
---|---|
[Mac] 설정을 통해 간편하게 SSH 접속하기 (0) | 2023.10.03 |