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

commented Mar 8, 2018

Thank you very much!

@tintorres

This comment has been minimized.

Copy link

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

commented Mar 26, 2018

High Sierra - worked for me TY :D

@lemonyujia

This comment has been minimized.

Copy link

commented Apr 4, 2018

It works! Thank you.

@DavidMarciel

This comment has been minimized.

Copy link

commented Apr 4, 2018

Thank you, it worked for me

@HarelShavit-Stratoscale

This comment has been minimized.

Copy link

commented Apr 9, 2018

Thank you! worked for me

@AdventureBear

This comment has been minimized.

Copy link

commented Apr 16, 2018

Thank you

@davidpoundall

This comment has been minimized.

Copy link

commented Apr 21, 2018

Thank you very much for taking the time to share.

@sinber

This comment has been minimized.

Copy link

commented Apr 26, 2018

Thank you!It works for me.
High Sierra 10.13.4

@SpankamusKhan

This comment has been minimized.

Copy link

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

commented May 10, 2018

Thanks. It works for me.
High Sierra 10.13.4

@manjang

This comment has been minimized.

Copy link

commented May 13, 2018

Works for me. Thanks a lot

@belivem

This comment has been minimized.

Copy link

commented May 13, 2018

thanks, words for me!

@ladaposamuel

This comment has been minimized.

Copy link

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

commented May 16, 2018

Restart the terminal after this command.

@adevabhaktuni

This comment has been minimized.

Copy link

commented May 21, 2018

thanks!

@kaleshg

This comment has been minimized.

Copy link

commented May 24, 2018

it worked for me. Thanks,

@chandradamineni

This comment has been minimized.

Copy link

commented May 25, 2018

Thank you!It works for me.

@mgrapiniak

This comment has been minimized.

Copy link

commented Jun 4, 2018

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

@kaileimao1996

This comment has been minimized.

Copy link

commented Jun 5, 2018

thanks. it worked.

@mammefen

This comment has been minimized.

Copy link

commented Jun 13, 2018

thank you

@Xiaohuaniu0032

This comment has been minimized.

Copy link

commented Jun 27, 2018

tks

@astrieanna

This comment has been minimized.

Copy link

commented Jun 28, 2018

Thank you!

@ktjd123

This comment has been minimized.

Copy link

commented Jun 28, 2018

Thank you!

@djshowtime

This comment has been minimized.

Copy link

commented Jul 2, 2018

Thank you!It works for me.
High Sierra 10.13.5

@yihuil1992

This comment has been minimized.

Copy link

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

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

commented Jul 6, 2018

👍

@AlvaroGonzalezCans

This comment has been minimized.

Copy link

commented Jul 9, 2018

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

@habhilash

This comment has been minimized.

Copy link

commented Jul 10, 2018

Thanks! works for me as well.

@owenmorrill

This comment has been minimized.

Copy link

commented Jul 12, 2018

Thanks!

@ruiruige

This comment has been minimized.

Copy link

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

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

commented Jul 23, 2018

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

@jericode

This comment has been minimized.

Copy link

commented Jul 28, 2018

Thanks!!!

@hlwanghl

This comment has been minimized.

Copy link

commented Jul 30, 2018

Thanks!

@jkhamilton62

This comment has been minimized.

Copy link

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

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

commented Aug 27, 2018

Thanks, It worked!

@alesmit

This comment has been minimized.

Copy link

commented Aug 27, 2018

It worked.

@abhinavprakash

This comment has been minimized.

Copy link

commented Aug 28, 2018

What the fix!

@ariel123

This comment has been minimized.

Copy link

commented Aug 28, 2018

Thank you, this worked for me.

@y0n4

This comment has been minimized.

Copy link

commented Aug 28, 2018

omg thank u sm

@alexohotnikov

This comment has been minimized.

Copy link

commented Aug 29, 2018

Thank you! 👍

@victoriaiii

This comment has been minimized.

Copy link

commented Aug 29, 2018

YOU'RE THE BEST, thank youuuu

@gp2u

This comment has been minimized.

Copy link

commented Aug 30, 2018

Thank you!

@osvaldocaliari-bbd

This comment has been minimized.

Copy link

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

commented Sep 21, 2018

Thanks!

@Hollyn

This comment has been minimized.

Copy link

commented Sep 22, 2018

Thanks for the sharing! (y)

@boboyejj

This comment has been minimized.

Copy link

commented Sep 24, 2018

Thank you!

@lavrentiev

This comment has been minimized.

Copy link

commented Sep 24, 2018

It works! Thank you.

@bruce0312

This comment has been minimized.

Copy link

commented Sep 25, 2018

It works!!! THANKS!
OS: 10.14

@wangwenyue

This comment has been minimized.

Copy link

commented Sep 25, 2018

Thx, my bro.

@xnhinzkyx

This comment has been minimized.

Copy link

commented Sep 25, 2018

Works on OS Mojave. Thanks!

@alphachai

This comment has been minimized.

Copy link

commented Sep 25, 2018

Fixed my issue after upgrade to Mojave.

@uhr

This comment has been minimized.

Copy link

commented Sep 26, 2018

it works, thanks!

@bayucakra20

This comment has been minimized.

Copy link

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

commented Sep 26, 2018

Works on OS 10.14. Thanks!

@dustbuster

This comment has been minimized.

Copy link

commented Sep 26, 2018

Awesome! Thanks!

@jose408510

This comment has been minimized.

Copy link

commented Sep 26, 2018

Thanks!

@gemxx

This comment has been minimized.

Copy link

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

commented Sep 27, 2018

Works in OS Mojave as well . Thanks !!!

@wanghui708

This comment has been minimized.

Copy link

commented Sep 27, 2018

Works in OS Mojave as well . Thanks !!!

@tumichnix

This comment has been minimized.

Copy link

commented Sep 28, 2018

Thanks!

@murfsurf

This comment has been minimized.

Copy link

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

commented Sep 29, 2018

Thanks Mac OS Mojave works!!

@Pooshan

This comment has been minimized.

Copy link

commented Oct 3, 2018

Thank you, thank you!

@mustafasari

This comment has been minimized.

Copy link

commented Oct 3, 2018

Mojave works, TY +1 :)

@pbertsch

This comment has been minimized.

Copy link

commented Oct 3, 2018

+1 for that , Thx

@nico1a

This comment has been minimized.

Copy link

commented Oct 5, 2018

Mojave, +1. thanks!

@osuzdalev

This comment has been minimized.

Copy link

commented Oct 5, 2018

Cheers !

@bercly0b

This comment has been minimized.

Copy link

commented Oct 6, 2018

thanks a lot! os x mojave

@hammadullah125

This comment has been minimized.

Copy link

commented Oct 6, 2018

Thanks ! OSX Mojave

@omadoyeabraham

This comment has been minimized.

Copy link

commented Oct 8, 2018

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

@smereczynski

This comment has been minimized.

Copy link

commented Oct 10, 2018

It works. Thanks!

@codevalve

This comment has been minimized.

Copy link

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.

Copy link

commented Oct 15, 2018

Thanks!.
Worked for me.

@DanCanetti

This comment has been minimized.

Copy link

commented Oct 16, 2018

Worked for me 👍

@misstonbon

This comment has been minimized.

Copy link

commented Oct 16, 2018

Thank you !

@Swetargoenka

This comment has been minimized.

Copy link

commented Oct 17, 2018

Thank you

@tmikolajczyk

This comment has been minimized.

Copy link

commented Oct 20, 2018

Works in High Sierra. Thank!

@TamSzaGot

This comment has been minimized.

Copy link

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

commented Oct 22, 2018

Thanks!

@enciie

This comment has been minimized.

Copy link

commented Oct 22, 2018

thank you!!!

@MatthewShowman

This comment has been minimized.

Copy link

commented Oct 24, 2018

Thank you!

@Yang-Jace-Liu

This comment has been minimized.

Copy link

commented Oct 25, 2018

saved my life.

@vell001

This comment has been minimized.

Copy link

commented Oct 25, 2018

works for me, thank you!!!

@kholub1989

This comment has been minimized.

Copy link

commented Oct 25, 2018

Thanks).

@Giadinski

This comment has been minimized.

Copy link

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

commented Oct 29, 2018

cool
it worked

@IndieGameMaker

This comment has been minimized.

Copy link

commented Oct 29, 2018

Thank you ~~~

@jigna-panchal

This comment has been minimized.

Copy link

commented Oct 30, 2018

Thanks!! Works on Mojave as well

@josevelez96

This comment has been minimized.

Copy link

commented Oct 30, 2018

IT WORKEEED!

@celesterobinson

This comment has been minimized.

Copy link

commented Oct 30, 2018

10/10 THANK YOU SO MUCH

@dorancemc

This comment has been minimized.

Copy link

commented Oct 31, 2018

Thanks! is working!

@JankyGaming

This comment has been minimized.

Copy link

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

commented Nov 1, 2018

same, do we need to download xcode?

@oceanpad

This comment has been minimized.

Copy link

commented Nov 1, 2018

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

@avmoengage

This comment has been minimized.

Copy link

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

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

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

commented Nov 1, 2018

On Mojave, solution from GiasemiSh worked for me.

@kanolato

This comment has been minimized.

Copy link

commented Nov 1, 2018

Thank you!

@gfirm

This comment has been minimized.

Copy link

commented Nov 2, 2018

not works on Mojave

@glennyabellana

This comment has been minimized.

Copy link

commented Nov 2, 2018

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

@user6800

This comment has been minimized.

Copy link

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

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

commented Nov 4, 2018

On Mojave , solution from GiasemiSh worked for me

@pat310

This comment has been minimized.

Copy link

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

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

commented Nov 5, 2018

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

@kmjungersen

This comment has been minimized.

Copy link

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

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

commented Nov 11, 2018

worked!

@bernardoseven

This comment has been minimized.

Copy link

commented Nov 20, 2018

Just Works!!! THANKS!!!

@Aagbator

This comment has been minimized.

Copy link

commented Nov 23, 2018

thanks, much love

@julian-sookhoo

This comment has been minimized.

Copy link

commented Nov 26, 2018

Worked on Mojave! Thank you!

@nikhil-g777

This comment has been minimized.

Copy link

commented Dec 6, 2018

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

@AnnaBeh

This comment has been minimized.

Copy link

commented Dec 6, 2018

Works for me. Thank you

@saibaskaran

This comment has been minimized.

Copy link

commented Dec 17, 2018

Thank you!

@ruchikarnawan

This comment has been minimized.

Copy link

commented Dec 26, 2018

Thank you 🎉

@ShawnNahashon

This comment has been minimized.

Copy link

commented Jan 8, 2019

Works for me. Thanks

@lmariemeehan

This comment has been minimized.

Copy link

commented Jan 8, 2019

Awesome, thank you!

@Orangary

This comment has been minimized.

Copy link

commented Jan 23, 2019

thank you for share

@madhusudhan518

This comment has been minimized.

Copy link

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

commented Feb 24, 2019

mojave: work it

@emebet12

This comment has been minimized.

Copy link

commented Feb 25, 2019

Resolved. Thank you!

@Bharathkumarraju

This comment has been minimized.

Copy link

commented Feb 28, 2019

but why is it OS bug?

@edisonjoao

This comment has been minimized.

Copy link

commented Mar 2, 2019

thank you!

@laurenmp

This comment has been minimized.

Copy link

commented Mar 6, 2019

Thanks!

@beilo

This comment has been minimized.

Copy link

commented Mar 12, 2019

Thanks!

@robbdempsey

This comment has been minimized.

Copy link

commented Mar 14, 2019

thanks! works with Mojave 10.14.2

@GuiThink

This comment has been minimized.

Copy link

commented Mar 23, 2019

Hello ! thank you from France :)

@jimrpy

This comment has been minimized.

Copy link

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)

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.