Xcode 13 compilation too slow, causes whole project rebuild

Hi,

After starting using Xcode 13, we have noticed our project takes considerably long time to compile.

It is a Swift app, no ObjC or bridging headers present.

Certain .xib files used to take less than a second to compile with Xcode 12 but now they take up to 30 seconds ( each! ) to compile.

We have also noticed that, each time we press "run" in Xcode, whole project is recompiling, even if nothing is changed or even if private functions internal value is changed.

I've read on Apples website how to optimise build settings, but unfortunately I cannot see any issue.

We are using CocoaPods and have many dependencies ( 60-70 ).

I've went through the whole project and confirmed that there are no scripts that change file during build phase.

What else can we do to improve situation?

Is there a way to see what is causing project to recompile? Also what is causing .xib files to take much more time?

Hey, I have the same issue. Now with Xcode 13, building our project takes a lot more time than with Xcode 12... Especially XIBs and storyboard files take a long time.

Also the project is recompiling even if nothing has changed. Can we somehow see what causes the recompilation? And how could cocoapods dependencies influence it?

Any feedback about debugging or checking the dependency list and cause of recompilation would be helpful...

Is there any update? It's rather funny, personally I have no problems, all the xibs are building in under 1 second. But for my coworker in the same project each xib takes 30-60 seconds. Which leads to builds lasting for 20 minutes 😱 which is super annoying

We both have Intel chips from different years. And obviously prior to Xcode 13 everything was running fast for everyone

has there been a solution for this? im experiencing something similar

Xcode 13 compilation too slow, causes whole project rebuild
 
 
Q