macOS 10.14 Mojave 업데이트 후에 git 등 Xcode command line tools 를 사용하고 있던 부분에서 아래와 같은 에러가 발생할 수 있다.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
이러한 경우에는 다음과 같은 명령어로써 해결할 수 있다.
xcode-select --install
위 명령어를 입력하게 되면, 아래와 같은 메세지와 함께 Xcode command line tools를 설치할 수 있다.
xcode-select: note: install requested for command line developer tools
애플 업데이터를 통해 Xcode command line tools 설치가 완료되면 다음 명령어를 통해 설치가 정상적으로 완료되었는지 확인하면 된다.
xcode-select -v