I have a similar problem. I found that it can be solved by using a virtual framework, and I am exploring how to start multiple virtual machines on a physical machine to share one Xcode to solve this problem. The purpose is to isolate environments in CI/CD scenarios.