xcrun error invalid active developer path in macOS Mojave
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
This error shows on terminal when you update or new install macOS Mojave. This error means your system does not have installed scode-select Developer Tool.
Open terminal and run following command:
You will see installetion window. You do not need to install full xcode, So just choose install. The setup size is approx 135 MB. This will download and install xcode-select.
Your problem should be solved and enjoy.
If you are still facing problem then try to reset your xcode-select path.
xcode-select --switch /Applications/Xcode.app xcode-select --switch /Library/Developer/CommandLineTools