System

Swift Package Manager Cache

Swift Package Manager stores downloaded package artifacts, repository metadata, bare Git checkouts, manifest parsing results, and build-related caches under org.swift.swiftpm so dependency resolution and package fetches do not have to start from scratch every time. Over time, interrupted downloads, changed package tags, rewritten repository state, or mismatched manifest cache entries can leave stale objects and corrupted metadata behind. Kudu removes these disposable SwiftPM cache files so package resolution, fetching, and dependency graph evaluation can rebuild cleanly without touching your source code, project settings, accounts, or credentials.

Why clean Swift Package Manager Cache?

  • Corrupted downloaded archives or partially fetched repositories can trigger repeated dependency fetch failures, with Xcode or swift build stopping on checksum, unpacking, or clone errors
  • Stale repository metadata after a package author retags or force-updates a reference can make SwiftPM resolve the wrong revision, showing version conflicts or 'failed to resolve dependencies' messages
  • Cached manifest evaluation results can fall out of sync with the current Package.swift state, leading to confusing resolver behavior where dependency changes do not appear until the cache is rebuilt
  • Old package artifacts and bare Git cache data accumulate across toolchains and projects, causing org.swift.swiftpm to consume large amounts of disk space that users notice in Library caches
  • Interrupted network operations can leave incomplete object databases or temporary files behind, producing clone retries, long hangs on 'Fetching', or repeated package download loops
  • Outdated binary artifact cache entries can cause SwiftPM to keep reusing a bad or incompatible artifact, which appears as build failures immediately after dependency resolution succeeds
  • SQLite-backed metadata used by package management can become page-fragmented over time; a VACUUM-style rebuild rewrites the database pages without deleting package rows, which can reduce wasted space and clear odd cache-state issues
What gets cleaned

Cache paths Kudu targets

macOS

~/Library/Caches/org.swift.swiftpm
Frequently asked

Common questions about Swift Package Manager Cache

Free & open source

Download Kudu and reclaim your disk space.

Available on Windows, macOS, and Linux. No account required, no feature gates, no telemetry without consent. All cleaning targets are open source and community-auditable.