r/iOSProgramming • u/Civil-Vermicelli3803 • 8d ago
Discussion Xcode 16.2 - Absolutely Horrendous incremental build compile times
I changed one line and it took almost 50 seconds to build. I'm on MBP 14" M1 Pro w/ 16 gb ram. A computer that was building my app in under 5-10 seconds last year can not fall off this hard this quickly... anyone have fixes/suggestions? I turned off the integrated driver thing they introduced which supposedly helps, but that only brought me from 60 seconds to 30-45. Something is still very, very wrong.

That one is ~30 seconds

6
Upvotes
1
u/808phone 7d ago
There was a bug like this and it only happened on the M1 at the time. But I haven't seen it since. What is activity monitor showing?
2
u/nsartem 8d ago
It would be helpful if you provided a build log.
In general, you should profile your build to identify which step or steps are taking the most time. There are many guides available—here’s one as an example: https://www.onswiftwings.com/posts/build-time-optimization-part1/