mac에서git를 설치한 후 xcode를 설치하라고 알립니다
877 단어 mac 사용
$ git version
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)
2. 솔루션
$ xcode-select --install
$ sudo xcode-select --switch /Library/Developer/CommandLineTools
$ git version
git version 2.11.0 (Apple Git-81)
참고 자료