Xcrun: Error: Invalid Active Developer Path
Get an ad-free experience with special benefits, and directly support Reddit.
- Xcrun Error Invalid Active Developer Path Mojave
- Mojave Missing Xcrun At: /library/developer/commandlinetools/usr/bin/xcrun
Last night (November 2018) I updated to macOS Mojave,
This morning I navigated to my work's code base in Command line on my MacBook pro,
typed in 'git status' in the repo and received the error:
12 Answers
The problem is that Xcode Command-line Tools needs to be updated.
Go back to your terminal and hit: Total war star wars mod.
You'll then receive:
And be prompted in a window to update Xcode Command Line tools.
After the update is completed, open a new terminal window and your development tools should be returned.
Addition: With any major or semi-major update you'll need to update the command line tools in order to get them functioning properly again. Check Xcode with any update. This goes beyond Mojave..
After that restart your terminal
Taimoor ChangaizI got some errors that the software was unavailable from the update server when trying
xcode-select --install
What fixed it for me was going here https://developer.apple.com/download/more/ and downloading Command Line Tools (macOS 10.14) for Xcode 10
and then installing it manually.
After that, the errors should be gone when you open up a new terminal.
For me xcode-select --reset
was the solution on Mojave.
In addition to dustbuster's answer I needed to set path to the Xcode folder with this command:
For me what worked is the following:
Then like in @High6's answer:
This will reveal a license which I assume is some Xcode license. Scroll to the bottom using space (or the mouse) then tap agree
.
This is what worked for me on MacOS Mojave v 10.14.
J PI figured out the Xcode Command Line Tools part from the error message, but after running Xcode and getting the prompt to install the additional tools it did claim to install them, but still I got the same error after opening a new terminal.
So I did the xcode-select --install
manually and after that it worked for me.
For me, I didn't have xcode installed (on Mojave OS). I went to the App Store on my mac and downloaded it, then went back to terminal and typed git
and hit enter, then it worked.
I found that my version of Xcode was too outdated and installing command-line-tools wasn't helping. Here's what I did:
- I completely uninstalled the outdated XCode
- I reinstalled the most recent XCode from the app store
- That was all. Git was restored.
Hope this helps someone else..
if you dont have xcode or setup manually without xcode.
- sudo rm -rf /Library/Developer/CommandLineTools
- https://developer.apple.com/download/more/ and downloading Command Line Tools (macOS 10.14) for Xcode 10 and then installing it manually.
- Setup Command Line Tools
Take it be easy
else
- xcode-select --install . enough this.
in my case it wasn't checked in xcode
you can do that as following :xcode -> Preferences and tap Locations then select , as the followng image
Not the answer you're looking for? Browse other questions tagged xcodegitmacoscommand-lineterminal or ask your own question.
Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
commented Aug 18, 2017
Steps to Reproduce: |
commented Aug 18, 2017
@tiendzbk I'd be happy to help you but I'm going to need more information from you. Can you please provide the information asked for in the issue template (GitLens version, vscode, os, etc). Also have you followed the steps in the error message? I'm assuming git is installed? If so, is it in your PATH? If not, where is it installed? Have you tried setting the Let me know and I'd be glad to help. |
Xcrun Error Invalid Active Developer Path Mojave
added the status: needs more info label Aug 18, 2017
commented Sep 12, 2017
This hasn't been updated in almost a month -- please re-open if there is still an issue I can help with |
commented Sep 21, 2017
I'm having the same issue just after update the lastest xcode.
fix issue |
commented Nov 17, 2017 • edited
edited
Try running this from Terminal. Worked for me. |
commented Nov 27, 2017 • edited
edited
Mojave Missing Xcrun At: /library/developer/commandlinetools/usr/bin/xcrun
Just downloaded 1.18.1. The 'GitLens unable to find Git' error is appearing. It appeared on 1.18.0 also, but never appeared on 1.17.1. I'm running the portable version as I do not admin rights to install on my Windows 10 machine. Note, No error appearing on my Mac(1.18.1) where I could install. Therefore, I am currently using the 1.17.1 version until this is fixed. UPDATE: when I asked for the path in the command window, the path to GIT was displayed. Yet, VS Code did not recognize it in the terminal window. When I added it to the path, at the end of the users path, the GitLens error message did not display. Why are the paths different? |
commented May 4, 2018 • edited
edited
Can confirm I had this issue once I upgraded from sierra to high seirra. Tried to find git and got this error: had to reinstall Looks like it doesn't reinstall xcode when you upgrade but weirdly git was present so I didn't have in to install that. Props goes to @shlgug |