Xcode doesn't open projects.

Yesterday I started having problems when I opened xcode. I would select a project and xcode would stop responding.

It appears to be something with swift as projects that are made with objective-c can open. Once, a project did open after around five minutes.

I have already tried clearing the developer folder, clearing build folder, and reinstalling xcode.

I looked in activity moniter, and xcode doesn't appear to be using any resources. I have a macbook pro with an m1 pro chip.

Update. I figured out the the projects are opening, they are just opening extremely slowly. A project that is basically a template project with 3 extra files takes around 4 minutes to open. Another project that I have been working on for a while took 17 minutes to open.

Xcode doesn't open projects.
 
 
Q