This process worked for me.
If you don't have XCode installed, you can download it from Apple Developer or the App Store.
I had to do the Clover-Space, type xcode (Which pulled up XCode-Beta), and press Clover-Enter to open the file location. I found that my XCode was still in the "Downloads" folder.
So I drag/dropped it onto the Applications folder, then I ran: Download Xcode or move it to your Applications folder. Then, open terminal and run both of these commands. One after the other.
sudo xcode-select -s /Applications/Xcode-Beta.app/Contents/Developer
sudo xcodebuild -license
Then space-down to the bottom and type "agree"
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: