Skip to content

Caching

How do I cache Swift Package Manager dependencies?

Quick answer

Cache .build and ~/Library/Caches/org.swift.swiftpm keyed on Package.resolved.

The detail that matters

Xcode projects also need DerivedData persisted, which is where most of the time actually goes.

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.