Skip to content

Guides

How to cut Xcode build times in CI

Xcode builds take twenty minutes on every run.

7 min read

Xcode builds take twenty minutes on every run.

Why it happens

DerivedData is discarded, so every run is a clean build including full type-checking.

How to fix it

  1. Persist DerivedData between runs — the single biggest win available
  2. Pin the Xcode version so the cache is not invalidated by an image update
  3. Find slow expressions with -Xfrontend -warn-long-expression-type-checking=200
  4. Split large modules so one change does not invalidate everything
  5. Use an M4 runner — Swift compilation is strongly single-thread sensitive

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.