Post

Replies

Boosts

Views

Activity

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?
4
0
1.5k
Dec ’21