.etc

[에러] 맥 환경에서 xcrun: error: invalid active developer path 에러 해결하기

빈형임 2025. 4. 6. 02:54

맥 환경에서 개발 환경 도구를 사용할 때, 빈번하게 발생하는 에러입니다.

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

 

 

문제상황

MacOS 를 업데이트 하면서 아주 빈번하게 git과 같은 개발 툴들을 활용할 때, xcrun 에러가 발생할 수 있습니다.

이 에러는 개발 도구들의 문제가 아니라 CommandLineTools을 식별하지 못할때 발생하는 에러입니다.

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

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

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

 

해결방안

그래서 xcode-select 명령어를 통해

CommandLineTools(command line developer tools)를 설치하여 상황을 해결할 수 있습니다.

xcode-select --install

 

 

대략 설치는 1~2분 정도 소요되며 설치가 완료되면 정상적으로 개발 도구들을 사용할 수 있습니다.

'.etc' 카테고리의 다른 글

Anaconda 설치 가이드 (Mac)  (0) 2025.03.11
Anaconda 설치 가이드 (Windows)  (0) 2025.03.11