Swift package build output (.build)
Last updated 1 November 2026
What it is, where it lives on your Mac, and whether it’s safe to delete.
Safe to delete
Yes. Comes back with swift build.
Where it is
Usually a .build folder inside a Swift package. DiskCity recognises it by what's inside, wherever it is.
What it is
swift build, swift test and swift run write all of a package's build output to .build beside its Package.swift and make it again from the sources.
Only a .build folder beside a Package.swift; the sources and Package.resolved stay. Nothing goes while SwiftPM builds, tests or runs, or within 3 days of a build.
Is it safe to delete?
Yes. Comes back with swift build.
How to remove it
- Quit swift-package, swift-build, swift-test, swift-run, swiftpm-testing-helper, xctest first.
- Leave anything opened or changed less than 3 days ago (for a folder, its newest file counts). DiskCity waits that long too.
- Remove it from inside the app or tool that made it, or find it in Finder and move it to the Trash.
What DiskCity does with it
DiskCity labels it as rebuildable and removes it when you approve, or on its own if you turn on Autopilot. It only suggests it once it hasn't been used for 3 days. It waits until swift-package is closed.
Sources
Checked 2026-10-28.
