[Error] xcrun: error: invalid active developer path ...

260·2023년 8월 7일

Other

목록 보기
1/2

git 사용중 에러 발생

찾아보니 MacOS 업데이트 후에 자주 발생하는 에러인데 CommandLineTools를 식별하지 못하여 생기는 것이라고 한다. 업데이트를 하진 않았지만 직전에 xcode 파일을 건들였던게 관련이 있지 않을까 싶다. 해결법은 CommandLineTools를 설치하는 것이다.

1. Mac CommandLineTools 설치

xcode-select --install

[또 에러 발생..] xcode-select: error: command line tools are already installed, use "Software Update" in System Settings to install updates

설치 명령어를 입력했더니 커맨드 라인 툴이 이미 설치되어 있다는 에러가 떴다. 이럴 때에는 해당 디렉토리를 완전히 지운 후 재설치 한다.

2. 디렉토리 삭제

sudo rm -rf /Library/Developer/CommandLineTools

3. 재설치

xcode-select --install

재설치 완료

여기서 설치를 눌러주면 오케이!

2개의 댓글

comment-user-thumbnail
2023년 8월 7일

큰 도움이 되었습니다, 감사합니다.

1개의 답글