Hi All,
i faced the above issue as well. i overcome the above issue by downloading and installing the XCode version 13.4.1 from the following site.
How to download Xcode DMG or XIP file? - Stack Overflow
I installed 13.4.1 from App store earlier and when i upgraded to 14 it doesn't work.
I installed 13.4.1 from the above link and it works fine. Hope this helps all.