XCode 12.0.1 Takes so Long to Save a File

Once I press cmd + s, it takes a solid 30 seconds to one minute to save the file, Xcode hangs, I can't even switch tabs.
Macbook Specs:
CPU: i5
Model: 2019
Type: Pro
RAM: 8GB
SSD: 35gb Free
It's so annoying after every single time I save a file. This also happens when I am downloading a file from Safari, it takes about 2 minutes to open up finder and then another minute to download a 4md file.
I have tried copying my project folder to home directory, still doesn't work.
Answered by Nav_07 in 655840022
Ok so I have been checking all over the internet and here is one reason why it might take so long to save a file:
A Guy on StackOverflow suggested that: "Swift is a Strictly Typed Language and Every Time you Save a File it re-analyses the code you wrote to make sue there are no errors"
Here is what's helping me:
Once I finish work on a file I wait for like 5 to 10 seconds for the compiler to re-analyse and once that is done I save, boom! You saved 1 minute.
Accepted Answer
Ok so I have been checking all over the internet and here is one reason why it might take so long to save a file:
A Guy on StackOverflow suggested that: "Swift is a Strictly Typed Language and Every Time you Save a File it re-analyses the code you wrote to make sue there are no errors"
Here is what's helping me:
Once I finish work on a file I wait for like 5 to 10 seconds for the compiler to re-analyse and once that is done I save, boom! You saved 1 minute.
Another fix for 12.3 Xcode Users: Go to the Developer Portal: developer.apple.com/downloads and download the 12.2 version. People tend to have a better luck with developer portal downloads. I have tried and so far it is going good.
XCode 12.0.1 Takes so Long to Save a File
 
 
Q