% 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

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/
More Posts related to MacOS,
- Clear Screen shortcut macOS Terminal
- What is macOS Ventura?
- [fix] How to Show file extensions on all files on Mac
- How to Find Where Mac Terminal App is Located?
- AutoSave button not working on Office on Mac (Word, Excel or Powerpoint)
- macOS say command text to speech using various voices and languages
- How to change Ping TTL value on macOS
- Open .bash_profile File in TextEdit using Terminal
- How to know the Safari Version on Mac
- How to Copy full Absolute Path of a File on Mac
- 13.0 MacOS Ventura release date
- Enable spell check in Sublime Text (macOS)
- How to Display Analog Clock on Mac Menu Bar
- How to turn off Location Services macOS Ventura 13
- How to Open VS Code on Mac
- Add Bookmark macOS Safari
- How to Fix cd: too many arguments Error in Terminal: A Step-by-Step Guide
- How to install wget on macOS
- Select Line Number TextEdit on Mac
- Strikethrough Text in Excel for Mac
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to hide or display Wifi icon in macOS Bug Sur Menu Bar
- How to install Yarn on Mac (macOS)
- How to fix command not found brew (bash, zsh) on macOS Terminal
- How to Schedule Mails in macOS Ventura
More Posts:
- Android EditText Cursor Colour appears to be white - Android
- Fix: rust-analyzer failed to discover workspace [Visual Studio Code] - Rust
- How to mute all sounds in Notepad++ - NotepadPlusPlus
- How to make Text in TextView bold and italic in Android - Android
- Fixing Android unknown error 961 while downloading app - Android
- F2 Key Cell Editing Alternative for Excel for Mac - Windows
- Setting up Spring Boot 3 + Maven + MySQL + JDBC Example - Java
- NewApi error : Finds API accesses to APIs that are not supported in all targeted API versions - Android