I have been updating to Sonoma (14.0) and I found the same error. I just execute the xcode installation and use some cli tools that previously failed.
xcode-select --install
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: