[Mac OS]. Mac 개발 관련 도구 에러Git Clon Error , xcrun: error

IT/Programming|2021. 2. 24. 23:03

 


Git clon하는 데 아래와같이 이상한 error 가 떳다.

뭐가 잘못된지몰라서 오타인가 하고 계속 쳐봐도 계속나오길래 바로 구글링해보니 아래와같이 검색되었다.

 

 

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
(heroku-opendoor) Skyler-2:heroku-opendoor skylerbang$ 

 

 

 

 

stackoverflow.com/questions/52522565/git-is-not-working-after-macos-update-xcrun-error-invalid-active-developer-pa

 

Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

I updated to macOS Mojave (this happens on Catalina update too, and seems to potentially occur on every major update thereafter) This morning I navigated to my work's codebase in the Command Line o...

stackoverflow.com

일단은 나말고도 많은 Mac OS user가 겪는것같다. Mac 업그레이드 후 개발 관련 도구 에러로 나오는데, 

그래도 다행이 solution 이 있어서 다행이다.  

 

첫번째 solution 으로는  터미널에서 

xcode-select --install

 

 

그리고나서 바로 클론 하니깐 바로 된다! 

 

솔직히 안될줄알았다.  스택오브 플로우에 보면안된다는사람이 더많으니깐... 링크타고가면 안될시 다른방법 을 알려준다.

 

위에오류는 Mac OS의 오류로 ,  mac업데이트할때마다  Xcode도 업데이트를 해줘야하는것같다.

오늘도 이렇게 새로운걸 배웠다.

 

 


 

반응형

댓글()