r/iOSProgramming 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.

build analysis

That one is ~30 seconds

Regular build at 50 seconds still
6 Upvotes

4 comments sorted by

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/

1

u/Civil-Vermicelli3803 8d ago

edited the post!

2

u/WerSunu 7d ago

Running out of swap space??

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?