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.
Git SCM is usually the way to go by branching your code into maybe an Xcode 14 branch where all work related to Xcode 14 takes place in there and some other branch from develop is where normal Xcode 13 or feature development continues to take place.
It wasn't the project in any way though. It turned out that Xcode 14 Beta messed up files in /System/Library/Developer. It destabilized Xcode 13.x such that it would crash or do unexpected behavior.