% 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
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/
More Posts related to MacOS,
- How to show line numbers in Nano on Mac
- How to install Jupyter Notebook on macOS Sonoma
- How to Disable Remote Management using Mac Terminal
- Test internet speed using macOS Terminal command
- Docker Desktop needs privileged access macOS
- Google Search Hot Trends Screensaver for Mac OS X
- How to do calculations in Mac Terminal
- How to make TextEdit the default text Editor on Mac
- How to Show Full Website Address on Safari for Mac (Ventura/Sonoma)
- The Zsh Shell - Mac Tutorial
- Opening mac Terminal
- How to change the name of your Mac running on macOS Ventura 13
- How to find the Battery Cycle Count on macOS Ventura
- How to set an emoji as Zsh terminal prompt in macOS
- How to access Trash Folder using Mac Terminal Command
- macOS Ventura XCode Command Line Tools Installation
- Hide Bluetooth icon on Mac Menu Bar macOS Ventura 13
- How to run .sh file in Mac Terminal
- Terminal Command to get the list of available shells in macOS
- How to see Storage Information on macOS Ventura
- How to Go To /usr/local/bin on Mac Terminal?
- How to do screen recording on Mac
- How to Find File and Directory Size in Mac Terminal
- Open .bash_profile File in TextEdit using Terminal
- Remove Now Playing icon from macOS Big Sur Menu Bar
More Posts:
- How to fix Jenkins Plugin Stuck in Uninstallation pending Status - Linux
- Python: Merge DataFrames Pandas Outer Join Example - Python
- Cannot load PowerApps form in SharePoint Online due to repeated authentication - SharePoint
- Add scroll to div element in HTML Css - CSS
- Fix: Jupyter Notebook Black Web Page on Localhost - Python
- How to Change Bootstrap Carousel Slide Speed - Bootstrap
- How to create StackOverflow error in java - Java
- Efficient way to perform HTTP cURL GET/POST Requests with Payload - cURL