I successfully resolved this by running: sudo xcode-select -s /Applications/Xcode.app
sudo xcode-select -s /Applications/Xcode.app