"xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance" when trying to export to iOS

Godot Version

4.5

Question

I am trying to export my project to iOS but when exporting I get this error

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

I have Xcode installed and

xcode-select --print-path
/Library/Developer/CommandLineTools

What am I missing here?