Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MacOS (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools))
If you are facing an error like that on new MacOS version.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
It means that you need to install XCode command line, open a Terminal and run this command:
$ xcode-select --install
Note:
If you want to download and install Command Line tools manually, it can be downloaded from: https://developer.apple.com/download/more/
@seatemple52

This comment has been minimized.

Copy link

@seatemple52 seatemple52 commented Mar 8, 2018

Thank you very much!

@tintorres

This comment has been minimized.

Copy link

@tintorres tintorres commented Mar 17, 2018

Just upgraded to macOS High Sierra
Version 10.13.3
xcode-select --install
works for me - thanks

@tsonny

This comment has been minimized.

Copy link

@tsonny tsonny commented Mar 26, 2018

High Sierra - worked for me TY :D

@lemonyujia

This comment has been minimized.

Copy link

@lemonyujia lemonyujia commented Apr 4, 2018

It works! Thank you.

@DavidMarciel

This comment has been minimized.

Copy link

@DavidMarciel DavidMarciel commented Apr 4, 2018

Thank you, it worked for me

@HarelShavit-Stratoscale

This comment has been minimized.

Copy link

@HarelShavit-Stratoscale HarelShavit-Stratoscale commented Apr 9, 2018

Thank you! worked for me

@AdventureBear

This comment has been minimized.

Copy link

@AdventureBear AdventureBear commented Apr 16, 2018

Thank you

@davidpoundall

This comment has been minimized.

Copy link

@davidpoundall davidpoundall commented Apr 21, 2018

Thank you very much for taking the time to share.

@sinber

This comment has been minimized.

Copy link

@sinber sinber commented Apr 26, 2018

Thank you!It works for me.
High Sierra 10.13.4

@SpankamusKhan

This comment has been minimized.

Copy link

@SpankamusKhan SpankamusKhan commented May 9, 2018

Recently updated to Mac OS High Sierra 10.13.4. This worked for me as well! Thank you very much. :)

@littledou2013

This comment has been minimized.

Copy link

@littledou2013 littledou2013 commented May 10, 2018

Thanks. It works for me.
High Sierra 10.13.4

@manjang

This comment has been minimized.

Copy link

@manjang manjang commented May 13, 2018

Works for me. Thanks a lot

@belivem

This comment has been minimized.

Copy link

@belivem belivem commented May 13, 2018

thanks, words for me!

@ladaposamuel

This comment has been minimized.

Copy link

@ladaposamuel ladaposamuel commented May 16, 2018

Did not work for me, do i need to restart or something?

@h-arora

This comment has been minimized.

Copy link

@h-arora h-arora commented May 16, 2018

Restart the terminal after this command.

@adevabhaktuni

This comment has been minimized.

Copy link

@adevabhaktuni adevabhaktuni commented May 21, 2018

thanks!

@kaleshg

This comment has been minimized.

Copy link

@kaleshg kaleshg commented May 24, 2018

it worked for me. Thanks,

@chandradamineni

This comment has been minimized.

Copy link

@chandradamineni chandradamineni commented May 25, 2018

Thank you!It works for me.

@mgrapiniak

This comment has been minimized.

Copy link

@mgrapiniak mgrapiniak commented Jun 4, 2018

Works like a charm after upgrading to High Sierra.
Thanks !

@kaileimao1996

This comment has been minimized.

Copy link

@kaileimao1996 kaileimao1996 commented Jun 5, 2018

thanks. it worked.

@mammefen

This comment has been minimized.

Copy link

@mammefen mammefen commented Jun 13, 2018

thank you

@Xiaohuaniu0032

This comment has been minimized.

Copy link

@Xiaohuaniu0032 Xiaohuaniu0032 commented Jun 27, 2018

tks

@astrieanna

This comment has been minimized.

Copy link

@astrieanna astrieanna commented Jun 28, 2018

Thank you!

@ktjd123

This comment has been minimized.

Copy link

@ktjd123 ktjd123 commented Jun 28, 2018

Thank you!

@djshowtime

This comment has been minimized.

Copy link

@djshowtime djshowtime commented Jul 2, 2018

Thank you!It works for me.
High Sierra 10.13.5

@yihuil1992

This comment has been minimized.

Copy link

@yihuil1992 yihuil1992 commented Jul 3, 2018

Thank you! Works for me, the version is High Sierra 10.13.5

@sergeev

This comment has been minimized.

Copy link

@sergeev sergeev commented Jul 6, 2018

MacBook Pro (Retina, 15-inch, Mid 2015) 10.13.5 It works for me! 👍

@squidbe

This comment has been minimized.

Copy link

@squidbe squidbe commented Jul 6, 2018

👍

@AlvaroGonzalezCans

This comment has been minimized.

Copy link

@AlvaroGonzalezCans AlvaroGonzalezCans commented Jul 9, 2018

Thanks! Works for me, MacBook Pro 2017 High Sierra 10.13.5 .

@habhilash

This comment has been minimized.

Copy link

@habhilash habhilash commented Jul 10, 2018

Thanks! works for me as well.

@owenmorrill

This comment has been minimized.

Copy link

@owenmorrill owenmorrill commented Jul 12, 2018

Thanks!

@ruiruige

This comment has been minimized.

Copy link

@ruiruige ruiruige commented Jul 13, 2018

thanks. I am new to mac. several days before, the mac prompt a message, And I choose update.
after 40min , I finally realized I have updated the High Sierra.
Now I meet the error. Thank u for your solution.

@jakesyl

This comment has been minimized.

@qiangli

This comment has been minimized.

Copy link

@qiangli qiangli commented Jul 19, 2018

Thanks @gaquino, "xcode-select --install" reduced my errors to one ; you may also need to follow the link posted by @jakesyl. for the impatient: I had to run "brew update/brew upgrade" to successully install kubernetes-helm after upgrading to macOS Sierra today.

@sweettimes

This comment has been minimized.

Copy link

@sweettimes sweettimes commented Jul 23, 2018

Thank you so much, it works !!!!!!

@joshmcode

This comment has been minimized.

Copy link

@joshmcode joshmcode commented Jul 28, 2018

Thanks!!!

@hlwanghl

This comment has been minimized.

Copy link

@hlwanghl hlwanghl commented Jul 30, 2018

Thanks!

@jkhamilton62

This comment has been minimized.

Copy link

@jkhamilton62 jkhamilton62 commented Aug 18, 2018

Worked for me! Thanks! MacBook Air MacOS High Sierra version 10.13.6

@rajashaker

This comment has been minimized.

Copy link

@rajashaker rajashaker commented Aug 21, 2018

Worked for me! Thanks MacBook Air MacOS High Sierra version 10.13.6

@therajanmaurya

This comment has been minimized.

Copy link

@therajanmaurya therajanmaurya commented Aug 27, 2018

Thanks, It worked!

@alesmit

This comment has been minimized.

Copy link

@alesmit alesmit commented Aug 27, 2018

It worked.

@abhinavprakash

This comment has been minimized.

Copy link

@abhinavprakash abhinavprakash commented Aug 28, 2018

What the fix!

@ariel123

This comment has been minimized.

Copy link

@ariel123 ariel123 commented Aug 28, 2018

Thank you, this worked for me.

@y0n4

This comment has been minimized.

Copy link

@y0n4 y0n4 commented Aug 28, 2018

omg thank u sm

@alexohotnikov

This comment has been minimized.

Copy link

@alexohotnikov alexohotnikov commented Aug 29, 2018

Thank you! 👍

@victoriaiii

This comment has been minimized.

Copy link

@victoriaiii victoriaiii commented Aug 29, 2018

YOU'RE THE BEST, thank youuuu

@gp2u

This comment has been minimized.

Copy link

@gp2u gp2u commented Aug 30, 2018

Thank you!

@osvaldocaliari-bbd

This comment has been minimized.

Copy link

@osvaldocaliari-bbd osvaldocaliari-bbd commented Sep 3, 2018

Thank you, this worked for me and fixed the issue with my git command!

@Tr0j4n9

This comment has been minimized.

Copy link

@Tr0j4n9 Tr0j4n9 commented Sep 21, 2018

Thanks!

@Hollyn

This comment has been minimized.

Copy link

@Hollyn Hollyn commented Sep 22, 2018

Thanks for the sharing! (y)

@boboyejj

This comment has been minimized.

Copy link

@boboyejj boboyejj commented Sep 24, 2018

Thank you!

@lavrentiev

This comment has been minimized.

Copy link

@lavrentiev lavrentiev commented Sep 24, 2018

It works! Thank you.

@bruce0312

This comment has been minimized.

Copy link

@bruce0312 bruce0312 commented Sep 25, 2018

It works!!! THANKS!
OS: 10.14

@wangwenyue

This comment has been minimized.

Copy link

@wangwenyue wangwenyue commented Sep 25, 2018

Thx, my bro.

@xnhinzkyx

This comment has been minimized.

Copy link

@xnhinzkyx xnhinzkyx commented Sep 25, 2018

Works on OS Mojave. Thanks!

@charlieparkes

This comment has been minimized.

Copy link

@charlieparkes charlieparkes commented Sep 25, 2018

Fixed my issue after upgrade to Mojave.

@uhr

This comment has been minimized.

Copy link

@uhr uhr commented Sep 26, 2018

it works, thanks!

@baycak

This comment has been minimized.

Copy link

@baycak baycak commented Sep 26, 2018

Thanks bro! after update to Mojave, I've got that error, and now it works after install xcode-install

@Luckyboys

This comment has been minimized.

Copy link

@Luckyboys Luckyboys commented Sep 26, 2018

Works on OS 10.14. Thanks!

@dustbuster

This comment has been minimized.

Copy link

@dustbuster dustbuster commented Sep 26, 2018

Awesome! Thanks!

@jose408510

This comment has been minimized.

Copy link

@jose408510 jose408510 commented Sep 26, 2018

Thanks!

@gemxx

This comment has been minimized.

Copy link

@gemxx gemxx commented Sep 27, 2018

Just upgraded to macOS High Sierra
Version 10.13.3
xcode-select --install
works for me - thanks

Works on OS 10.14. Thanks!

@harshmasand2016

This comment has been minimized.

Copy link

@harshmasand2016 harshmasand2016 commented Sep 27, 2018

Works in OS Mojave as well . Thanks !!!

@ahwwwh

This comment has been minimized.

Copy link

@ahwwwh ahwwwh commented Sep 27, 2018

Works in OS Mojave as well . Thanks !!!

@tumichnix

This comment has been minimized.

Copy link

@tumichnix tumichnix commented Sep 28, 2018

Thanks!

@murfsurf

This comment has been minimized.

Copy link

@murfsurf murfsurf commented Sep 29, 2018

Thank you very much!!! Resolved the issue on my Mac with 10.13.6

@romanoffs

This comment has been minimized.

Copy link

@romanoffs romanoffs commented Sep 29, 2018

Thanks Mac OS Mojave works!!

@Pooshan

This comment has been minimized.

Copy link

@Pooshan Pooshan commented Oct 3, 2018

Thank you, thank you!

@mustafasari

This comment has been minimized.

Copy link

@mustafasari mustafasari commented Oct 3, 2018

Mojave works, TY +1 :)

@pbertsch

This comment has been minimized.

Copy link

@pbertsch pbertsch commented Oct 3, 2018

+1 for that , Thx

@nico1a

This comment has been minimized.

Copy link

@nico1a nico1a commented Oct 5, 2018

Mojave, +1. thanks!

@osuzdalev

This comment has been minimized.

Copy link

@osuzdalev osuzdalev commented Oct 5, 2018

Cheers !

@bercly0b

This comment has been minimized.

Copy link

@bercly0b bercly0b commented Oct 6, 2018

thanks a lot! os x mojave

@hammadullah125

This comment has been minimized.

Copy link

@hammadullah125 hammadullah125 commented Oct 6, 2018

Thanks ! OSX Mojave

@omadoyeabraham

This comment has been minimized.

Copy link

@omadoyeabraham omadoyeabraham commented Oct 8, 2018

Just updated to OSX Mojave, and this works. Thanks a lot.

@smereczynski

This comment has been minimized.

Copy link

@smereczynski smereczynski commented Oct 10, 2018

It works. Thanks!

@codevalve

This comment has been minimized.

Copy link

@codevalve codevalve commented Oct 12, 2018

Worked for me, Thanks!

However, brew upgrade doesnt like my version of xcode.

For another day on that one... :)

@maziCodes

This comment has been minimized.

Copy link

@maziCodes maziCodes commented Oct 15, 2018

Thanks!.
Worked for me.

@DanCanetti

This comment has been minimized.

Copy link

@DanCanetti DanCanetti commented Oct 16, 2018

Worked for me 👍

@misstonbon

This comment has been minimized.

Copy link

@misstonbon misstonbon commented Oct 16, 2018

Thank you !

@Swetargoenka

This comment has been minimized.

Copy link

@Swetargoenka Swetargoenka commented Oct 17, 2018

Thank you

@tmikolajczyk

This comment has been minimized.

Copy link

@tmikolajczyk tmikolajczyk commented Oct 20, 2018

Works in High Sierra. Thank!

@TamSzaGot

This comment has been minimized.

Copy link

@TamSzaGot TamSzaGot commented Oct 22, 2018

xcrun disappeared after Mojave 10.14 upgrade last night.

This saved me! Thank you!

@cderya1994

This comment has been minimized.

Copy link

@cderya1994 cderya1994 commented Oct 22, 2018

Thanks!

@enciie

This comment has been minimized.

Copy link

@enciie enciie commented Oct 22, 2018

thank you!!!

@MatthewShowman

This comment has been minimized.

Copy link

@MatthewShowman MatthewShowman commented Oct 24, 2018

Thank you!

@Yang-Jace-Liu

This comment has been minimized.

Copy link

@Yang-Jace-Liu Yang-Jace-Liu commented Oct 25, 2018

saved my life.

@vell001

This comment has been minimized.

Copy link

@vell001 vell001 commented Oct 25, 2018

works for me, thank you!!!

@kholub1989

This comment has been minimized.

Copy link

@kholub1989 kholub1989 commented Oct 25, 2018

Thanks).

@Giadinski

This comment has been minimized.

Copy link

@Giadinski Giadinski commented Oct 27, 2018

Doesn't work for me and I dunno why. Every time I run the command it says 'command not found'. I have MacOs X 10.14. Could someone help me?

@mafzal2005

This comment has been minimized.

Copy link

@mafzal2005 mafzal2005 commented Oct 29, 2018

cool
it worked

@IndieGameMaker

This comment has been minimized.

Copy link

@IndieGameMaker IndieGameMaker commented Oct 29, 2018

Thank you ~~~

@jigna-panchal

This comment has been minimized.

Copy link

@jigna-panchal jigna-panchal commented Oct 30, 2018

Thanks!! Works on Mojave as well

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Oct 30, 2018

IT WORKEEED!

@celesterobinson

This comment has been minimized.

Copy link

@celesterobinson celesterobinson commented Oct 30, 2018

10/10 THANK YOU SO MUCH

@dorancemc

This comment has been minimized.

Copy link

@dorancemc dorancemc commented Oct 31, 2018

Thanks! is working!

@JankyGaming

This comment has been minimized.

Copy link

@JankyGaming JankyGaming commented Oct 31, 2018

"Can't install the software because it is not currently available from the Software Update server."

@emarrs

This comment has been minimized.

Copy link

@emarrs emarrs commented Nov 1, 2018

same, do we need to download xcode?

@oceanpad

This comment has been minimized.

Copy link

@oceanpad oceanpad commented Nov 1, 2018

My new MacOS Majave, can not work, who can help?

@avmoengage

This comment has been minimized.

Copy link

@avmoengage avmoengage commented Nov 1, 2018

I am also getting this error "Can't install the software because it is not currently available from the Software Update server."

@GiasemiSh

This comment has been minimized.

Copy link

@GiasemiSh GiasemiSh commented Nov 1, 2018

Same error. Updated to Mojave and I'm getting "Can't install the software because it is not currently available from the Software Update server."

@GiasemiSh

This comment has been minimized.

Copy link

@GiasemiSh GiasemiSh commented Nov 1, 2018

Go to: https://developer.apple.com/download/more/
You'll need to sign in with your Apple Developer Account. Then download one of the links "Command Line tools", depending on your macOS version. Worked for me.

@iancullinane

This comment has been minimized.

Copy link

@iancullinane iancullinane commented Nov 1, 2018

On Mojave, solution from GiasemiSh worked for me.

@kanolato

This comment has been minimized.

Copy link

@kanolato kanolato commented Nov 1, 2018

Thank you!

@gfirm

This comment has been minimized.

Copy link

@gfirm gfirm commented Nov 2, 2018

not works on Mojave

@glennyabellana

This comment has been minimized.

Copy link

@glennyabellana glennyabellana commented Nov 2, 2018

For MacOS Mojave
First xcode-select --reset
Then sudo xcodebuild --license

@user6800

This comment has been minimized.

Copy link

@user6800 user6800 commented Nov 3, 2018

when doing xcode-select --install also get "Can't install the software because it is not currently available from the Software Update server."

When I try sudo xcodebuild --license i get "xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance"

@Miatautox

This comment has been minimized.

Copy link

@Miatautox Miatautox commented Nov 4, 2018

Thanks glennyabellana, That worked for me on Mojave (15"Mac book Pro Retina) restarted terminal and I'm good to go

@kimyoungdong2

This comment has been minimized.

Copy link

@kimyoungdong2 kimyoungdong2 commented Nov 4, 2018

On Mojave , solution from GiasemiSh worked for me

@pat310

This comment has been minimized.

Copy link

@pat310 pat310 commented Nov 4, 2018

@user6800 I had to install xcode through the app store, then I ran sudo xcodebuild and agreed to the license

@user6800

This comment has been minimized.

Copy link

@user6800 user6800 commented Nov 5, 2018

Thanks @pat310. I was hoping to avoid having to use the app store but I guess that's what I'll do if there's no other solution.

@mrsufgi

This comment has been minimized.

Copy link

@mrsufgi mrsufgi commented Nov 5, 2018

:( I dont want to install xcode though, no solution for CLI tools?

@kmjungersen

This comment has been minimized.

Copy link

@kmjungersen kmjungersen commented Nov 5, 2018

I just downloaded 10.14 (Mojave) and was experiencing this issue. As a few people mentioned above, re-installing the XCode CLI tools worked for me: https://developer.apple.com/download/more/.

Just select the package appropriate for your OS version.

@csavoia

This comment has been minimized.

Copy link

@csavoia csavoia commented Nov 5, 2018

Currently on High Sierra 10.13.6, simply running original solution (below) worked like a charm. Thank you!

xcode-select --install

@guanacone

This comment has been minimized.

Copy link

@guanacone guanacone commented Nov 11, 2018

worked!

@bernardoseven

This comment has been minimized.

Copy link

@bernardoseven bernardoseven commented Nov 20, 2018

Just Works!!! THANKS!!!

@Aagbator

This comment has been minimized.

Copy link

@Aagbator Aagbator commented Nov 23, 2018

thanks, much love

@julian-sookhoo

This comment has been minimized.

Copy link

@julian-sookhoo julian-sookhoo commented Nov 26, 2018

Worked on Mojave! Thank you!

@nikhil-g777

This comment has been minimized.

Copy link

@nikhil-g777 nikhil-g777 commented Dec 6, 2018

Just installed Mojave and had this problem
It works ! Thank you !

@AnnaBeh

This comment has been minimized.

Copy link

@AnnaBeh AnnaBeh commented Dec 6, 2018

Works for me. Thank you

@saibaskaran

This comment has been minimized.

Copy link

@saibaskaran saibaskaran commented Dec 17, 2018

Thank you!

@ruchikarnawan

This comment has been minimized.

Copy link

@ruchikarnawan ruchikarnawan commented Dec 26, 2018

Thank you 🎉

@ShawnNahashon

This comment has been minimized.

Copy link

@ShawnNahashon ShawnNahashon commented Jan 8, 2019

Works for me. Thanks

@lmariemeehan

This comment has been minimized.

Copy link

@lmariemeehan lmariemeehan commented Jan 8, 2019

Awesome, thank you!

@1oser5

This comment has been minimized.

Copy link

@1oser5 1oser5 commented Jan 23, 2019

thank you for share

@madhusudhan518

This comment has been minimized.

Copy link

@madhusudhan518 madhusudhan518 commented Feb 7, 2019

I got this error while installing ruby with rvm.
This Issue solved. Thank you.

@ValeriusBlack

This comment has been minimized.

Copy link

@ValeriusBlack ValeriusBlack commented Feb 24, 2019

mojave: work it

@emebet12

This comment has been minimized.

Copy link

@emebet12 emebet12 commented Feb 25, 2019

Resolved. Thank you!

@Bharathkumarraju

This comment has been minimized.

Copy link

@Bharathkumarraju Bharathkumarraju commented Feb 28, 2019

but why is it OS bug?

@edisonjoao

This comment has been minimized.

Copy link

@edisonjoao edisonjoao commented Mar 2, 2019

thank you!

@LaurenDeveloper

This comment has been minimized.

Copy link

@LaurenDeveloper LaurenDeveloper commented Mar 6, 2019

Thanks!

@beilo

This comment has been minimized.

Copy link

@beilo beilo commented Mar 12, 2019

Thanks!

@robbdempsey

This comment has been minimized.

Copy link

@robbdempsey robbdempsey commented Mar 14, 2019

thanks! works with Mojave 10.14.2

@GuiThink

This comment has been minimized.

Copy link

@GuiThink GuiThink commented Mar 23, 2019

Hello ! thank you from France :)

@jimrpy

This comment has been minimized.

Copy link

@jimrpy jimrpy commented Mar 23, 2019

Thanks! fixed the exact error.

But when I tried to install ape package in R, it raised another error: clang: error: linker command failed with exit code 1 (use -v to see invocation)

@abodero

This comment has been minimized.

Copy link

@abodero abodero commented May 21, 2019

thanks. It worked!

@redemma71

This comment has been minimized.

Copy link

@redemma71 redemma71 commented Jun 10, 2019

thanks! worked for my new install of Mojave 10.14.5.

@paulayu0908

This comment has been minimized.

Copy link

@paulayu0908 paulayu0908 commented Jul 5, 2019

Thank you very much for sharing this!

@vladcorn

This comment has been minimized.

Copy link

@vladcorn vladcorn commented Oct 8, 2019

thanks! MacOS Catalina 10.15 works)

@efureev

This comment has been minimized.

Copy link

@efureev efureev commented Oct 10, 2019

Good! Catalina 10.15

@abhay-singh-au3

This comment has been minimized.

Copy link

@abhay-singh-au3 abhay-singh-au3 commented Oct 11, 2019

Thanks! Catalina

@PedroAguiar

This comment has been minimized.

Copy link

@PedroAguiar PedroAguiar commented Oct 11, 2019

Thank you! Catalina 10.15

@TheresaUlwahn

This comment has been minimized.

Copy link

@TheresaUlwahn TheresaUlwahn commented Oct 14, 2019

Thanks a million!! It worked for me!!

@jp555soul

This comment has been minimized.

Copy link

@jp555soul jp555soul commented Oct 14, 2019

Cheers mate!

@censtrom

This comment has been minimized.

Copy link

@censtrom censtrom commented Oct 14, 2019

Thanks! Catalina 10.15

@formazione

This comment has been minimized.

Copy link

@formazione formazione commented Oct 16, 2019

Thanks it worked on Catalina

@Mtora

This comment has been minimized.

Copy link

@Mtora Mtora commented Oct 18, 2019

Thanks, it's work for Catalina

@marahmanjs

This comment has been minimized.

Copy link

@marahmanjs marahmanjs commented Oct 30, 2019

Thanks it's work for Catalina Version 10.15.1 (19B88)

@c0dine

This comment has been minimized.

Copy link

@c0dine c0dine commented Nov 6, 2019

I think it will work on every version because ITS COMMEN SENSE!!!!

@talitaoliveira

This comment has been minimized.

Copy link

@talitaoliveira talitaoliveira commented Nov 6, 2019

I just updated to Catalina and had the same problem. This solution work for me. Thanks!!

@felipecesr

This comment has been minimized.

Copy link

@felipecesr felipecesr commented Nov 14, 2019

Thank you!

@doquocnhatcntt

This comment has been minimized.

Copy link

@doquocnhatcntt doquocnhatcntt commented Nov 25, 2019

Thank you so much!

@mochadwi

This comment has been minimized.

Copy link

@mochadwi mochadwi commented Dec 1, 2019

The issue came up when I open up my Android Studio and shows this popup below:

Screen Shot 2019-12-02 at 12 06 21 AM

The image said that Cannot Run Git, I've also collected my search below:

And as for my macOS setup was from Mojave and I upgrade it to Catalina, this solution fixed my issue. Thank you so much for all the hard work you guys put into this!!!

@vickyXiong

This comment has been minimized.

Copy link

@vickyXiong vickyXiong commented Dec 4, 2019

Thank you so much!

@vickyXiong

This comment has been minimized.

Copy link

@vickyXiong vickyXiong commented Dec 4, 2019

Thank you so much!

@elvnvle

This comment has been minimized.

Copy link

@elvnvle elvnvle commented Dec 17, 2019

Perfect! Thanks!

@sueduclos

This comment has been minimized.

Copy link

@sueduclos sueduclos commented Jan 1, 2020

Worked for me when I updated to Catalina! Thank you!

@tmbull

This comment has been minimized.

Copy link

@tmbull tmbull commented Jan 29, 2020

👍 I just used this to get rustc working again after updating to Catalina.

@thirumladevi-sivakumar

This comment has been minimized.

Copy link

@thirumladevi-sivakumar thirumladevi-sivakumar commented Feb 25, 2020

Can you please tell how long it took to install xcode using command xcode-select --install ?

@pteki345

This comment has been minimized.

Copy link

@pteki345 pteki345 commented Mar 2, 2020

5-20 mins, but didnt work for me. its my corporate macOS Catalina 10.15.3, anything else I can try?

@gaquino

This comment has been minimized.

Copy link
Owner Author

@gaquino gaquino commented Mar 2, 2020

Have you tried to download the command and tools and install it manually? I include the link as a note. Try it.

@pteki345

This comment has been minimized.

Copy link

@pteki345 pteki345 commented Mar 3, 2020

After couple of tries of the install/reset and restart fixed the issue. Thank you.

@Ram0nG

This comment has been minimized.

Copy link

@Ram0nG Ram0nG commented Mar 3, 2020

Worked for me Thanks!!!

@LayanCS

This comment has been minimized.

Copy link

@LayanCS LayanCS commented Mar 16, 2020

Thank you!!

@Alexbeis

This comment has been minimized.

Copy link

@Alexbeis Alexbeis commented Mar 23, 2020

Working for me on Catalina 10.15.2! Thanks

@rudypont

This comment has been minimized.

Copy link

@rudypont rudypont commented Apr 8, 2020

Lifesaver!

@aroraharry14

This comment has been minimized.

Copy link

@aroraharry14 aroraharry14 commented Apr 24, 2020

Works for me! However, wanted to know why it needed XCode ?

@noli12345

This comment has been minimized.

Copy link

@noli12345 noli12345 commented May 12, 2020

Works for me on Catalina 10.15.3 Thank you!

@Gabjure

This comment has been minimized.

Copy link

@Gabjure Gabjure commented May 12, 2020

Works for me on MacBook Pro (Mid 2012) Catalina 10.15.4

@CodingJason

This comment has been minimized.

Copy link

@CodingJason CodingJason commented May 15, 2020

It works for me, thank you.

@BadgerDuck41

This comment has been minimized.

Copy link

@BadgerDuck41 BadgerDuck41 commented Jun 26, 2020

THANK YOU!!!!!

@liangmeijing89

This comment has been minimized.

Copy link

@liangmeijing89 liangmeijing89 commented Jul 14, 2020

Thanks a lot!

@xf2109

This comment has been minimized.

Copy link

@xf2109 xf2109 commented Aug 3, 2020

Thank you so much, also works for me!

@anumsm

This comment has been minimized.

Copy link

@anumsm anumsm commented Aug 21, 2020

I had to run "sudo xcode-select --reset" as well.

@MayaBlixt

This comment has been minimized.

Copy link

@MayaBlixt MayaBlixt commented Aug 23, 2020

Thank you 👍

@Praveni

This comment has been minimized.

Copy link

@Praveni Praveni commented Sep 20, 2020

It didn't work for me. Says not available from the software update server. Please let me know what can I do.
Thanks

@123abceng

This comment has been minimized.

Copy link

@123abceng 123abceng commented Oct 3, 2020

The same shit. "Not available from the software update server."
Screen Shot 2020-10-03 at 12 25 55 PM

but the better way is reinstall brew, and after that it'll automatically instal all xcode command line packages.
https://brew.sh/

@Praveni

This comment has been minimized.

Copy link

@Praveni Praveni commented Oct 5, 2020

Hello @123abceng, I was getting the same error in the beginning and then I figured out that when this message pops up it means that the server is already updated and that the xcrun or xcode is already installed. So, I have deleted all the xcrun and xcode files from my system and then directly pasted this xcode command in my terminal. And it worked. I hope it works for you too.
Thanks

@SergeyRadist

This comment has been minimized.

Copy link

@SergeyRadist SergeyRadist commented Nov 2, 2020

You can just exec brew install script without removing it
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

@Oleh0374

This comment has been minimized.

Copy link

@Oleh0374 Oleh0374 commented Nov 14, 2020

Super! Thank you!

@OlaLaurene

This comment has been minimized.

Copy link

@OlaLaurene OlaLaurene commented Jan 11, 2021

It worked like a charm! Thank you!

@jandrodev

This comment has been minimized.

Copy link

@jandrodev jandrodev commented Feb 11, 2021

It worked on a MacBook Pro 2020 with MacOS Big Sur 11.2.1. Thanks !!

@bingli224

This comment has been minimized.

Copy link

@bingli224 bingli224 commented Feb 18, 2021

It works on my Mac min (M1, 2020). Thanks.

@ken1009us

This comment has been minimized.

Copy link

@ken1009us ken1009us commented Mar 2, 2021

It worked on a Macbook Pro 2017 with MacOS Big Sur 11.2.2.
Many thanks.

@WAAkurugu

This comment has been minimized.

Copy link

@WAAkurugu WAAkurugu commented Mar 2, 2021

Worked for me: MacOS Big Sur 11.2.1.
Thank you!

@HenrikVL

This comment has been minimized.

Copy link

@HenrikVL HenrikVL commented Mar 3, 2021

This worked!
Updated my M1 Macbook Pro to Big Sur 11.2.2 and had this problem.
I ran the following in my terminal:

xcode-select --install 

This fixed the issue.

@Raymond0728

This comment has been minimized.

Copy link

@Raymond0728 Raymond0728 commented Mar 3, 2021

Works for me, thanks a lot.
macOS Big Sur 11.2.2
MacBook Pro 2019

@gabaudette

This comment has been minimized.

Copy link

@gabaudette gabaudette commented Mar 12, 2021

Thank you

@fabiensebban

This comment has been minimized.

Copy link

@fabiensebban fabiensebban commented Mar 14, 2021

Upgraded my mac book pro from High Sierra to Big Sur. Works fine for me.

Thank you!

@cbloss

This comment has been minimized.