Git is not working after macOS Mojave Update
Last night i updated to macOS Mojave, After that i have faced some issue in git. Git not working in my terminal. When i am trying to type git in my terminal then getting following status.
1 2 3 |
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun |
Solution :
Go back to your terminal and press:
1 2 |
xcode-select --install |
You’ll then receive:
1 |
xcode-select: note: install requested for command line developer tools |
And be prompted in a window to update Xcode Command Line tools.
Press Install xcode and restart
After the update is completed, open a new terminal window and your development tools should be returned.
It has solved my problem, Thanks