If you don't feel like downloading 15GB of stuff, this has fixed the issue for me:
sudo xcode-select --reset
As found here on StackExchange: https://apple.stackexchange.com/questions/432149/what-is-xcrun-and-why-would-updating-to-macos-mojave-cause-it-to-go-missing/432153