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 the terminal when you update or new install macOS Mojave. This error means your system does not have installed Xcode-select Developer Tool.
Open the terminal and run following command:
You will see installation 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