A few days ago I used Xcode 14 Beta to gather some build timings for three of my projects. That went well. I then went back to using Xcode 13.4.1, but found that two of those three projects would immediately crash Xcode when I opened them.
Also started to have crashes in other projects when debugging (single clicks into the debugging panel or even trying to resize Xcode windows would crash it).
Deleting Xcode 14 and 13.4.1 and re-installing just 13.4.1 didn't fix the issue. Even after reboots and purging all Derived Data.
I'm now deleting anything developer related (e.g. /Library/Developer), going to reboot, install Xcode 13.4.1 fresh and hope for the best.
Earlier I also tried re-installing 13.4, but the same issues were experienced with that. Actually, after scrubbing my system, I may just go back to Xcode 13.3 and should that prove stable, then perhaps move to 13.4.x. I'm assuming that running Xcode 14 is what hosed my system and that it's not a fault of 13.x which I've used without issue prior.
After restoring all project files, things were still messed up. So I completely purged any Developer or Xcode folder found in /System/Library, ~/Library, etc. Then, restored from a backup. Chose June 1st which was back when I had Xcode 13.4. Also re-restored all projects (archiving off any source file changes though).
Re-installed Xcode 13.4.1 and so far things are working as expected. So between messing up my project files, Xcode 14 must have also messed up something in ~/Library, or elsewhere.
And hurray! The hot key Shift Command A in the simulator is once again toggling dark mode. I didn't mention that ealier, but that was another function I had lost. Executing the hot key briefly flashed the Features menu in the Simulator, but the appearance didn't change. Workaround was to go into Preferences | Developer, but that got annoying.