iOS

Xcode 여러 버전 설치 후 git 문제

삼쓰 웅쓰 2022. 5. 13. 14:14
728x90


아래와 같은 에러가 나온다면, git에서 제대로 된 Xcode 경로를 찾지못해 발생하는 에러입니다.

xcrun: error: active developer path ("/Users/~~~/Xcode13.2.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.


에러 메시지에서 알려주는 대로 아래 같이 Xcode의 경로를 지정해주면 됩니다.
저는 Applications/ 밑에 Xcode.app 을 따라가려고 해요 :)

sudo xcode-select --switch /Applications/Xcode.app