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

This comment has been minimized.

Copy link

seatemple52 commented Mar 8, 2018

Thank you very much!

@tintorres

This comment has been minimized.

Copy link

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 commented Mar 26, 2018

High Sierra - worked for me TY :D

@lemonyujia

This comment has been minimized.

Copy link

lemonyujia commented Apr 4, 2018

It works! Thank you.

@DavidMarciel

This comment has been minimized.

Copy link

DavidMarciel commented Apr 4, 2018

Thank you, it worked for me

@HarelShavit-Stratoscale

This comment has been minimized.

Copy link

HarelShavit-Stratoscale commented Apr 9, 2018

Thank you! worked for me

@AdventureBear

This comment has been minimized.

Copy link

AdventureBear commented Apr 16, 2018

Thank you

@davidpoundall

This comment has been minimized.

Copy link

davidpoundall commented Apr 21, 2018

Thank you very much for taking the time to share.

@sinber

This comment has been minimized.

Copy link

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 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 commented May 10, 2018

Thanks. It works for me.
High Sierra 10.13.4

@manjang

This comment has been minimized.

Copy link

manjang commented May 13, 2018

Works for me. Thanks a lot

@belivem

This comment has been minimized.

Copy link

belivem commented May 13, 2018

thanks, words for me!

@ladaposamuel

This comment has been minimized.

Copy link

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 commented May 16, 2018

Restart the terminal after this command.

@adevabhaktuni

This comment has been minimized.

Copy link

adevabhaktuni commented May 21, 2018

thanks!

@kaleshg

This comment has been minimized.

Copy link

kaleshg commented May 24, 2018

it worked for me. Thanks,

@chandradamineni

This comment has been minimized.

Copy link

chandradamineni commented May 25, 2018

Thank you!It works for me.

@mgrapiniak

This comment has been minimized.

Copy link

mgrapiniak commented Jun 4, 2018

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

@kaileimao1996

This comment has been minimized.

Copy link

kaileimao1996 commented Jun 5, 2018

thanks. it worked.

@mammefen

This comment has been minimized.

Copy link

mammefen commented Jun 13, 2018

thank you

@Xiaohuaniu0032

This comment has been minimized.

Copy link

Xiaohuaniu0032 commented Jun 27, 2018

tks

@astrieanna

This comment has been minimized.

Copy link

astrieanna commented Jun 28, 2018

Thank you!

@ktjd123

This comment has been minimized.

Copy link

ktjd123 commented Jun 28, 2018

Thank you!

@djshowtime

This comment has been minimized.

Copy link

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 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 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 commented Jul 6, 2018

👍

@AlvaroGonzalezCans

This comment has been minimized.

Copy link

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 commented Jul 10, 2018

Thanks! works for me as well.

@owenmorrill

This comment has been minimized.

Copy link

owenmorrill commented Jul 12, 2018

Thanks!

@ruiruige

This comment has been minimized.

Copy link

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 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 commented Jul 23, 2018

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

@joshmcode

This comment has been minimized.

Copy link

joshmcode commented Jul 28, 2018

Thanks!!!

@hlwanghl

This comment has been minimized.

Copy link

hlwanghl commented Jul 30, 2018

Thanks!

@jkhamilton62

This comment has been minimized.

Copy link

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 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 commented Aug 27, 2018

Thanks, It worked!

@alesmit

This comment has been minimized.

Copy link

alesmit commented Aug 27, 2018

It worked.

@abhinavprakash

This comment has been minimized.

Copy link

abhinavprakash commented Aug 28, 2018

What the fix!

@ariel123

This comment has been minimized.

Copy link

ariel123 commented Aug 28, 2018

Thank you, this worked for me.

@y0n4

This comment has been minimized.

Copy link

y0n4 commented Aug 28, 2018

omg thank u sm

@alexohotnikov

This comment has been minimized.

Copy link

alexohotnikov commented Aug 29, 2018

Thank you! 👍

@victoriaiii

This comment has been minimized.

Copy link

victoriaiii commented Aug 29, 2018

YOU'RE THE BEST, thank youuuu

@gp2u

This comment has been minimized.

Copy link

gp2u commented Aug 30, 2018

Thank you!

@osvaldocaliari-bbd

This comment has been minimized.

Copy link

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 commented Sep 21, 2018

Thanks!

@Hollyn

This comment has been minimized.

Copy link

Hollyn commented Sep 22, 2018

Thanks for the sharing! (y)

@boboyejj

This comment has been minimized.

Copy link

boboyejj commented Sep 24, 2018

Thank you!

@lavrentiev

This comment has been minimized.

Copy link

lavrentiev commented Sep 24, 2018

It works! Thank you.

@bruce0312

This comment has been minimized.

Copy link

bruce0312 commented Sep 25, 2018

It works!!! THANKS!
OS: 10.14

@wangwenyue

This comment has been minimized.

Copy link

wangwenyue commented Sep 25, 2018

Thx, my bro.

@xnhinzkyx

This comment has been minimized.

Copy link

xnhinzkyx commented Sep 25, 2018

Works on OS Mojave. Thanks!

@alphachai

This comment has been minimized.

Copy link

alphachai commented Sep 25, 2018

Fixed my issue after upgrade to Mojave.

@uhr

This comment has been minimized.

Copy link

uhr commented Sep 26, 2018

it works, thanks!

@bayucakra20

This comment has been minimized.

Copy link

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.

Copy link

Luckyboys commented Sep 26, 2018

Works on OS 10.14. Thanks!

@dustbuster

This comment has been minimized.

Copy link

dustbuster commented Sep 26, 2018

Awesome! Thanks!

@jose408510

This comment has been minimized.

Copy link

jose408510 commented Sep 26, 2018

Thanks!

@gemxx

This comment has been minimized.

Copy link

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 commented Sep 27, 2018

Works in OS Mojave as well . Thanks !!!

@wanghui708

This comment has been minimized.

Copy link

wanghui708 commented Sep 27, 2018

Works in OS Mojave as well . Thanks !!!

@tumichnix

This comment has been minimized.

Copy link

tumichnix commented Sep 28, 2018

Thanks!

@murfsurf

This comment has been minimized.

Copy link

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 commented Sep 29, 2018

Thanks Mac OS Mojave works!!

@Pooshan

This comment has been minimized.

Copy link

Pooshan commented Oct 3, 2018

Thank you, thank you!

@mustafasari

This comment has been minimized.

Copy link

mustafasari commented Oct 3, 2018

Mojave works, TY +1 :)

@pbertsch

This comment has been minimized.

Copy link

pbertsch commented Oct 3, 2018

+1 for that , Thx

@nico1a

This comment has been minimized.

Copy link

nico1a commented Oct 5, 2018

Mojave, +1. thanks!

@osuzdalev

This comment has been minimized.

Copy link

osuzdalev commented Oct 5, 2018

Cheers !

@bercly0b

This comment has been minimized.

Copy link

bercly0b commented Oct 6, 2018

thanks a lot! os x mojave

@hammadullah125

This comment has been minimized.

Copy link

hammadullah125 commented Oct 6, 2018

Thanks ! OSX Mojave

@omadoyeabraham

This comment has been minimized.

Copy link

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 commented Oct 10, 2018

It works. Thanks!

@codevalve

This comment has been minimized.

Copy link

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 commented Oct 15, 2018

Thanks!.
Worked for me.

@DanCanetti

This comment has been minimized.

Copy link

DanCanetti commented Oct 16, 2018

Worked for me 👍

@misstonbon

This comment has been minimized.

Copy link

misstonbon commented Oct 16, 2018

Thank you !

@Swetargoenka

This comment has been minimized.

Copy link

Swetargoenka commented Oct 17, 2018

Thank you

@tmikolajczyk

This comment has been minimized.

Copy link

tmikolajczyk commented Oct 20, 2018

Works in High Sierra. Thank!

@TamSzaGot

This comment has been minimized.

Copy link

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.

Copy link

ChadOnlineFuels commented Oct 22, 2018

Thanks!

@enciie

This comment has been minimized.

Copy link

enciie commented Oct 22, 2018

thank you!!!

@MatthewShowman

This comment has been minimized.

Copy link

MatthewShowman commented Oct 24, 2018

Thank you!

@Yang-Jace-Liu

This comment has been minimized.

Copy link

Yang-Jace-Liu commented Oct 25, 2018

saved my life.

@vell001

This comment has been minimized.

Copy link

vell001 commented Oct 25, 2018

works for me, thank you!!!

@kholub1989

This comment has been minimized.

Copy link

kholub1989 commented Oct 25, 2018

Thanks).

@Giadinski

This comment has been minimized.

Copy link

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 commented Oct 29, 2018

cool
it worked

@IndieGameMaker

This comment has been minimized.

Copy link

IndieGameMaker commented Oct 29, 2018

Thank you ~~~

@jigna-panchal

This comment has been minimized.

Copy link

jigna-panchal commented Oct 30, 2018

Thanks!! Works on Mojave as well

@josevelez96

This comment has been minimized.

Copy link

josevelez96 commented Oct 30, 2018

IT WORKEEED!

@celesterobinson

This comment has been minimized.

Copy link

celesterobinson commented Oct 30, 2018

10/10 THANK YOU SO MUCH

@dorancemc

This comment has been minimized.

Copy link

dorancemc commented Oct 31, 2018

Thanks! is working!

@JankyGaming

This comment has been minimized.

Copy link

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 commented Nov 1, 2018

same, do we need to download xcode?

@oceanpad

This comment has been minimized.

Copy link

oceanpad commented Nov 1, 2018

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

@avmoengage

This comment has been minimized.

Copy link

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 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 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 commented Nov 1, 2018

On Mojave, solution from GiasemiSh worked for me.

@kanolato

This comment has been minimized.

Copy link

kanolato commented Nov 1, 2018

Thank you!

@gfirm

This comment has been minimized.

Copy link

gfirm commented Nov 2, 2018

not works on Mojave

@glennyabellana

This comment has been minimized.

Copy link

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 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 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 commented Nov 4, 2018

On Mojave , solution from GiasemiSh worked for me

@pat310

This comment has been minimized.

Copy link

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 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 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 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 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 commented Nov 11, 2018

worked!

@bernardoseven

This comment has been minimized.

Copy link

bernardoseven commented Nov 20, 2018

Just Works!!! THANKS!!!

@Aagbator

This comment has been minimized.

Copy link

Aagbator commented Nov 23, 2018

thanks, much love

@julian-sookhoo

This comment has been minimized.

Copy link

julian-sookhoo commented Nov 26, 2018

Worked on Mojave! Thank you!

@nikhil-g777

This comment has been minimized.

Copy link

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 commented Dec 6, 2018

Works for me. Thank you

@saibaskaran

This comment has been minimized.

Copy link

saibaskaran commented Dec 17, 2018

Thank you!

@ruchikarnawan

This comment has been minimized.

Copy link

ruchikarnawan commented Dec 26, 2018

Thank you 🎉

@ShawnNahashon

This comment has been minimized.

Copy link

ShawnNahashon commented Jan 8, 2019

Works for me. Thanks

@lmariemeehan

This comment has been minimized.

Copy link

lmariemeehan commented Jan 8, 2019

Awesome, thank you!

@1oser5

This comment has been minimized.

Copy link

1oser5 commented Jan 23, 2019

thank you for share

@madhusudhan518

This comment has been minimized.

Copy link

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 commented Feb 24, 2019

mojave: work it

@emebet12

This comment has been minimized.

Copy link

emebet12 commented Feb 25, 2019

Resolved. Thank you!

@Bharathkumarraju

This comment has been minimized.

Copy link

Bharathkumarraju commented Feb 28, 2019

but why is it OS bug?

@edisonjoao

This comment has been minimized.

Copy link

edisonjoao commented Mar 2, 2019

thank you!

@laurenmp

This comment has been minimized.

Copy link

laurenmp commented Mar 6, 2019

Thanks!

@beilo

This comment has been minimized.

Copy link

beilo commented Mar 12, 2019

Thanks!

@robbdempsey

This comment has been minimized.

Copy link

robbdempsey commented Mar 14, 2019

thanks! works with Mojave 10.14.2

@GuiThink

This comment has been minimized.

Copy link

GuiThink commented Mar 23, 2019

Hello ! thank you from France :)

@jimrpy

This comment has been minimized.

Copy link

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 commented May 21, 2019

thanks. It worked!

@redemma71

This comment has been minimized.

Copy link

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 commented Jul 5, 2019

Thank you very much for sharing this!

@vladcorn

This comment has been minimized.

Copy link

vladcorn commented Oct 8, 2019

thanks! MacOS Catalina 10.15 works)

@efureev

This comment has been minimized.

Copy link

efureev commented Oct 10, 2019

Good! Catalina 10.15

@abhay-singh-au3

This comment has been minimized.

Copy link

abhay-singh-au3 commented Oct 11, 2019

Thanks! Catalina

@PedroAguiar

This comment has been minimized.

Copy link

PedroAguiar commented Oct 11, 2019

Thank you! Catalina 10.15

@TheresaUlwahn

This comment has been minimized.

Copy link

TheresaUlwahn commented Oct 14, 2019

Thanks a million!! It worked for me!!

@jp555soul

This comment has been minimized.

Copy link

jp555soul commented Oct 14, 2019

Cheers mate!

@censtrom

This comment has been minimized.

Copy link

censtrom commented Oct 14, 2019

Thanks! Catalina 10.15

@Niteblock

This comment has been minimized.

Copy link

Niteblock commented Oct 15, 2019

Thanks so much, worked for me in Catalina! for some reason, it uninstalled when I updated, do you know why?

@formazione

This comment has been minimized.

Copy link

formazione commented Oct 16, 2019

Thanks it worked on Catalina

@Mtora

This comment has been minimized.

Copy link

Mtora commented Oct 18, 2019

Thanks, it's work for Catalina

@MARahman49

This comment has been minimized.

Copy link

MARahman49 commented Oct 30, 2019

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

@Regularcheckm8

This comment has been minimized.

Copy link

Regularcheckm8 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 commented Nov 6, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.