[fix] macOS Ventura xcrun: error: invalid active developer path missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun


% git init
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
 missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

I recently ran into the above error while trying to use git on macOS Terminal

I executed the command xcode-select --install to install the Command Line Tools but it failed as well,

Can't install the software because it is not currently available from the Software Update Server

CommandLineTools installation error
Solution:

I was able to download the latest Command Line Tools for Xcode 14 beta 5.dmg using the apple developer account: https://download.developer.apple.com/Developer_Tools/Command_Line_Tools_for_Xcode_14_beta_5/Command_Line_Tools_for_Xcode_14_beta_5.dmg

After installing it manually the issue got fixed.

% git init
Reinitialized existing Git repository in /Users/code2care/Desktop/abc/.git/


















Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap