running brew the doctor gave me helpful answers to this
If the software update is closed, you can agree to the license by opening Xcode.app, but I couldn’t ... so instead I ran:
sudo xcodebuild -license
What if you scroll to the bottom of the page, you can enter “agree” and then you are good to go.
source share