본문 바로가기
OS/Mac OSX

[Mac] Tip: Resolving xcrun error

by llHoYall 2021. 4. 3.

Terminal에서 작업을 하다보면, 다음과 같은 에러를 만날 때가 종종 있습니다.

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

xcode의 command line도구 관련 문제인데, 보통 새로 설치를 해주면 문제가 해결됩니다.

$ xcode-select --install

 

이미 설치가 되어있는데, 경로가 꼬여서 경로를 재설정 하고 싶다면 다음의 명령어를 입력해주면 됩니다.

$ xcode-select --reset

단축 옵션으로 -r을 사용할 수 있습니다.

 

임의의 경로를 직접 설정해 줄 수도 있습니다.

Xcode 없이 사용할 경우

$ sudo xcode-select --switch /Library/Developer/CommandLineTools

Xcode가 설치된 경우

$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

단축 옵션으로 -s를 사용할 수 있습니다.

 

제 경우에는 항상 이걸로 해결이 됐었습니다.

도움이 되셨으면 좋겠네요. ^^

'OS > Mac OSX' 카테고리의 다른 글

[Mac] 외장하드 포맷하기  (0) 2021.04.21
[Mac] Configuration for Development  (0) 2020.09.26
[Mac] Shell Configuration (feat. zsh)  (0) 2020.09.25
[Mac] Change Colors of ls Command  (0) 2020.09.25
[Mac] Terminal Configuration with iTerm2  (0) 2020.09.24

댓글