I am not sure it's the correct answer.
Check:
Xcode -> Settings -> Locations -> Command Line Tools.
If Xcode 15.0 is selected the problem will still be there
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: