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
@seatemple52

This comment has been minimized.

seatemple52 commented Mar 8, 2018

Thank you very much!

@tintorres

This comment has been minimized.

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.

tsonny commented Mar 26, 2018

High Sierra - worked for me TY :D

@lemonyujia

This comment has been minimized.

lemonyujia commented Apr 4, 2018

It works! Thank you.

@DavidMarciel

This comment has been minimized.

DavidMarciel commented Apr 4, 2018

Thank you, it worked for me

@HarelShavit-Stratoscale

This comment has been minimized.

HarelShavit-Stratoscale commented Apr 9, 2018

Thank you! worked for me

@AdventureBear

This comment has been minimized.

AdventureBear commented Apr 16, 2018

Thank you

@davidpoundall

This comment has been minimized.

davidpoundall commented Apr 21, 2018

Thank you very much for taking the time to share.

@sinber

This comment has been minimized.

sinber commented Apr 26, 2018

Thank you!It works for me.
High Sierra 10.13.4

@SpankamusKhan

This comment has been minimized.

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.

littledou2013 commented May 10, 2018

Thanks. It works for me.
High Sierra 10.13.4

@manjang

This comment has been minimized.

manjang commented May 13, 2018

Works for me. Thanks a lot

@belivem

This comment has been minimized.

belivem commented May 13, 2018

thanks, words for me!

@ladaposamuel

This comment has been minimized.

ladaposamuel commented May 16, 2018

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

@h-arora

This comment has been minimized.

h-arora commented May 16, 2018

Restart the terminal after this command.

@adevabhaktuni

This comment has been minimized.

adevabhaktuni commented May 21, 2018

thanks!

@kaleshg

This comment has been minimized.

kaleshg commented May 24, 2018

it worked for me. Thanks,

@chandradamineni

This comment has been minimized.

chandradamineni commented May 25, 2018

Thank you!It works for me.

@mgrapiniak

This comment has been minimized.

mgrapiniak commented Jun 4, 2018

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

@kaileimao1996

This comment has been minimized.

kaileimao1996 commented Jun 5, 2018

thanks. it worked.

@mammefen

This comment has been minimized.

mammefen commented Jun 13, 2018

thank you

@Xiaohuaniu0032

This comment has been minimized.

Xiaohuaniu0032 commented Jun 27, 2018

tks

@astrieanna

This comment has been minimized.

astrieanna commented Jun 28, 2018

Thank you!

@ktjd123

This comment has been minimized.

ktjd123 commented Jun 28, 2018

Thank you!

@djshowtime

This comment has been minimized.

djshowtime commented Jul 2, 2018

Thank you!It works for me.
High Sierra 10.13.5

@yihuil1992

This comment has been minimized.

yihuil1992 commented Jul 3, 2018

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

@sergeev

This comment has been minimized.

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.

squidbe commented Jul 6, 2018

👍

@AlvaroGonzalezCans

This comment has been minimized.

AlvaroGonzalezCans commented Jul 9, 2018

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

@habhilash

This comment has been minimized.

habhilash commented Jul 10, 2018

Thanks! works for me as well.

@owenmorrill

This comment has been minimized.

owenmorrill commented Jul 12, 2018

Thanks!

@ruiruige

This comment has been minimized.

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.

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.

sweettimes commented Jul 23, 2018

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

@jericode

This comment has been minimized.

jericode commented Jul 28, 2018

Thanks!!!

@hlwanghl

This comment has been minimized.

hlwanghl commented Jul 30, 2018

Thanks!

@jkhamilton62

This comment has been minimized.

jkhamilton62 commented Aug 18, 2018

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

@rajashaker

This comment has been minimized.

rajashaker commented Aug 21, 2018

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

@therajanmaurya

This comment has been minimized.

therajanmaurya commented Aug 27, 2018

Thanks, It worked!

@alesmit

This comment has been minimized.

alesmit commented Aug 27, 2018

It worked.

@abhinavprakash

This comment has been minimized.

abhinavprakash commented Aug 28, 2018

What the fix!

@ariel123

This comment has been minimized.

ariel123 commented Aug 28, 2018

Thank you, this worked for me.

@y0n4

This comment has been minimized.

y0n4 commented Aug 28, 2018

omg thank u sm

@alexohotnikov

This comment has been minimized.

alexohotnikov commented Aug 29, 2018

Thank you! 👍

@victoriaiii

This comment has been minimized.

victoriaiii commented Aug 29, 2018

YOU'RE THE BEST, thank youuuu

@gp2u

This comment has been minimized.

gp2u commented Aug 30, 2018

Thank you!

@osvaldocaliari-bbd

This comment has been minimized.

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.

Tr0j4n9 commented Sep 21, 2018

Thanks!

@Hollyn

This comment has been minimized.

Hollyn commented Sep 22, 2018

Thanks for the sharing! (y)

@boboyejj

This comment has been minimized.

boboyejj commented Sep 24, 2018

Thank you!

@lavrentiev

This comment has been minimized.

lavrentiev commented Sep 24, 2018

It works! Thank you.

@bruce0312

This comment has been minimized.

bruce0312 commented Sep 25, 2018

It works!!! THANKS!
OS: 10.14

@wangwenyue

This comment has been minimized.

wangwenyue commented Sep 25, 2018

Thx, my bro.

@xnhinzkyx

This comment has been minimized.

xnhinzkyx commented Sep 25, 2018

Works on OS Mojave. Thanks!

@alphachai

This comment has been minimized.

alphachai commented Sep 25, 2018

Fixed my issue after upgrade to Mojave.

@uhr

This comment has been minimized.

uhr commented Sep 26, 2018

it works, thanks!

@bayucakra20

This comment has been minimized.

bayucakra20 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.

Luckyboys commented Sep 26, 2018

Works on OS 10.14. Thanks!

@dustbuster

This comment has been minimized.

dustbuster commented Sep 26, 2018

Awesome! Thanks!

@jose408510

This comment has been minimized.

jose408510 commented Sep 26, 2018

Thanks!

@gemxx

This comment has been minimized.

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.

harshmasand2016 commented Sep 27, 2018

Works in OS Mojave as well . Thanks !!!

@wanghui708

This comment has been minimized.

wanghui708 commented Sep 27, 2018

Works in OS Mojave as well . Thanks !!!

@tumichnix

This comment has been minimized.

tumichnix commented Sep 28, 2018

Thanks!

@murfsurf

This comment has been minimized.

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.

romanoffs commented Sep 29, 2018

Thanks Mac OS Mojave works!!

@Pooshan

This comment has been minimized.

Pooshan commented Oct 3, 2018

Thank you, thank you!

@mustafasari

This comment has been minimized.

mustafasari commented Oct 3, 2018

Mojave works, TY +1 :)

@pbertsch

This comment has been minimized.

pbertsch commented Oct 3, 2018

+1 for that , Thx

@nico1a

This comment has been minimized.

nico1a commented Oct 5, 2018

Mojave, +1. thanks!

@OlegSouzdalev

This comment has been minimized.

OlegSouzdalev commented Oct 5, 2018

Cheers !

@bercly0b

This comment has been minimized.

bercly0b commented Oct 6, 2018

thanks a lot! os x mojave

@hammadullah125

This comment has been minimized.

hammadullah125 commented Oct 6, 2018

Thanks ! OSX Mojave

@omadoyeabraham

This comment has been minimized.

omadoyeabraham commented Oct 8, 2018

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

@smereczynski

This comment has been minimized.

smereczynski commented Oct 10, 2018

It works. Thanks!

@codevalve

This comment has been minimized.

codevalve commented Oct 12, 2018

Worked for me, Thanks!

However, brew upgrade doesnt like my version of xcode.

For another day on that one... :)

@Bristonmekus

This comment has been minimized.

Bristonmekus commented Oct 15, 2018

Thanks!.
Worked for me.

@DanCanetti

This comment has been minimized.

DanCanetti commented Oct 16, 2018

Worked for me 👍

@misstonbon

This comment has been minimized.

misstonbon commented Oct 16, 2018

Thank you !

@Swetargoenka

This comment has been minimized.

Swetargoenka commented Oct 17, 2018

Thank you

@tmikolajczyk

This comment has been minimized.

tmikolajczyk commented Oct 20, 2018

Works in High Sierra. Thank!

@TamSzaGot

This comment has been minimized.

TamSzaGot commented Oct 22, 2018

xcrun disappeared after Mojave 10.14 upgrade last night.

This saved me! Thank you!

@ChadOnlineFuels

This comment has been minimized.

ChadOnlineFuels commented Oct 22, 2018

Thanks!

@enciie

This comment has been minimized.

enciie commented Oct 22, 2018

thank you!!!

@MatthewShowman

This comment has been minimized.

MatthewShowman commented Oct 24, 2018

Thank you!

@Yang-Jace-Liu

This comment has been minimized.

Yang-Jace-Liu commented Oct 25, 2018

saved my life.

@vell001

This comment has been minimized.

vell001 commented Oct 25, 2018

works for me, thank you!!!

@kholub1989

This comment has been minimized.

kholub1989 commented Oct 25, 2018

Thanks).

@Giadinski

This comment has been minimized.

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.

mafzal2005 commented Oct 29, 2018

cool
it worked

@IndieGameMaker

This comment has been minimized.

IndieGameMaker commented Oct 29, 2018

Thank you ~~~

@jigna-panchal

This comment has been minimized.

jigna-panchal commented Oct 30, 2018

Thanks!! Works on Mojave as well

@josevelez96

This comment has been minimized.

josevelez96 commented Oct 30, 2018

IT WORKEEED!

@celesterobinson

This comment has been minimized.

celesterobinson commented Oct 30, 2018

10/10 THANK YOU SO MUCH

@dorancemc

This comment has been minimized.

dorancemc commented Oct 31, 2018

Thanks! is working!

@JamesDonaldChilds

This comment has been minimized.

JamesDonaldChilds 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.

emarrs commented Nov 1, 2018

same, do we need to download xcode?

@oceanpad

This comment has been minimized.

oceanpad commented Nov 1, 2018

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

@avmoengage

This comment has been minimized.

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.

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.

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.

iancullinane commented Nov 1, 2018

On Mojave, solution from GiasemiSh worked for me.

@kanolato

This comment has been minimized.

kanolato commented Nov 1, 2018

Thank you!

@gfirm

This comment has been minimized.

gfirm commented Nov 2, 2018

not works on Mojave

@glennyabellana

This comment has been minimized.

glennyabellana commented Nov 2, 2018

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

@user6800

This comment has been minimized.

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.

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.

kimyoungdong2 commented Nov 4, 2018

On Mojave , solution from GiasemiSh worked for me

@pat310

This comment has been minimized.

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.

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.

mrsufgi commented Nov 5, 2018

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

@kmjungersen

This comment has been minimized.

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.

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.

guanacone commented Nov 11, 2018

worked!

@bernardoseven

This comment has been minimized.

bernardoseven commented Nov 20, 2018

Just Works!!! THANKS!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment