[SOLVED] Starting to have the same problem today. I have two user account in my mac mini m1- Monterey 12.5 xcode 13.4.1. I signed out of my second one and used xcode on my primary user account. Started working suddenly. Still cant use xcode in my second user account. Strange!!!
Apple should really look into this!!!