Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"xcrun: error: active developer path… does not exist, use xcode-select --switch" when trying to run git. How to fix?

Tags:

git

xcode

macos

I have been trying to instal the Git on my mac, But every time I use the command $git --version.

I get the following error

xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not exist, use xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools (or see man xcode-select)

I have already installed the Xcode on my mac for iOS App development. I am not sure what this error is trying to say.

like image 945
Jasmeet Avatar asked Aug 23 '26 11:08

Jasmeet


1 Answers

My case:

I removed XCode. JetBrains integration with git - breaks. Found this error in terminal.

My soltuion:

I don't want to download XCode to restore PyCharm. So I ran:

sudo xcode-select --reset
like image 168
Nikolay Fominyh Avatar answered Aug 25 '26 15:08

Nikolay Fominyh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!