Odd Xcode error: Objective-C garbage collection is not supported
That is an odd error as the framework request in question is coming from an Apple app.

It seems your Xcode has been updated to a newer version and the licence agreement needs to be accepted. You can do this two ways:


Open Xcode.app and follow the prompts
In Terminal: sudo xcodebuild -license
(and with newer versions sudo xcodebuild -license accept to do it in one step)


Afterwards confirm xcode-select --print-path returns a valid result.

You should then be good to go, assuming your combination of macOS version and Xcode version are compatible.