Xcode is not building my project anymore

I'm trying to build and run my project but it's stuck and not doing anything although it's making my MacBook Pro work overtime due to the noise it's making.

I've checked Activity Monitor and the swift-frontend process is at 99.3% CPU.

Is there something I can do? I tried restarting my Mac, I tried restarting Xcode, I tried killing the processes and it seems to now be completely stuck.

Try to create a new project and see what happens.

If it does not work, problem is likely Xcode. Try to reinstall it.

If it works that means something is corrupted in your project.

In that case, just open the old project and create files in the new project, one by one. Copy and paste content from old file to the new file.

Do it step by step to identify which file is causing problem.

Xcode is not building my project anymore
 
 
Q