[MAC] xcrun: error: invalid active developer 에러 해결방법

방금 전, MacOS Ventura 13.0.1로 업그레이드 하고, flutter, python 개발 중 다음 과 같은 에러 코드를 내뱉으며 잘 되던 것들이 안되기 시작했다.
간단한 git부터 시작해서, 맥 내 환경변수를 포함하는 대부분의 명령어에서 다음과 같은 에러 메시지를 보냈다. 다음 글에서 그 해결방법을 정리했다.

Error Message

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

[Error Message] xcrun: error: invalid active developer

[Error Message] xcrun: error: invalid active developer

이런 현상은 맥 OS를 업데이트하면 종종 나타나왔었는데, M1으로 넘어오고나서는 처음 보는 현상이기에 해결법도 여전한지 확인해보며, 이 글을 적고 있다.

해결방법

맥의 개발자 도구인 CommandLineTools를 재설치하여 해당 에러를 고칠 수 있다.

1
$ xcode-select --install

[MAC] xcrun: error: invalid active developer 에러 해결방법

https://emjayahn.github.io/2022/12/12/20221212-mac-xcrunn-error-invalid-active-ddeveloper-error/

Author

Emjay Ahn

Posted on

2022-12-12

Updated on

2022-12-12

Licensed under

Comments