반응형
어느날 git을 사용하려고 command를 실행하니 아래와 같은 오류가 발생되었다.
오류
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
원인
원인은 둘 중 하나로 의심되었다.
1. MacOS 소프트웨어 업데이트
2. Xcode 삭제
해결 방법
xcode-select --install
xcode-select --reset
또는
sudo xcode-select --reset
xcode-select --switch /Library/Developer/CommandLineTools
또는
sudo xcode-select --switch /Library/Developer/CommandLineTools
위에 세 명령어를 실행 한 후, git 명령어가 정상 수행되었다!
참고
반응형