인디노트

xcode-select --install 에러 해결책 본문

개발 플랫폼 및 언어

xcode-select --install 에러 해결책

인디개발자 2023. 5. 18. 07:30

xcode-select --install 를 수행하면 xcode-select: error: command line tools are already installed, use "Software Update" in System Settings to install updates 메시지가 표시되는 경우가 있다.

다음을 수행해 본다.

xcode-select --print-path

출력이 이런식으로 나올 수 있다.

/Library/Developer/CommandLineTools

실제 이 폴더에 가보면 xcode 가 설치된 곳이 아니다. 아마도 이전 버전의 설정의 잔재....

다음명령으로 올바르게 다시 설정하자.

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

 

이제 다음과 같이 올바른 패스가 설정되어 make 를 수행할 수 있다.

% xcode-select --print-path

/Applications/Xcode.app/Contents/Developer

반응형
Comments