# Swift package build output (.build)

Source: https://diskcity.app/folders/xcode-swift-pmbuild

**Safe to delete.** Yes. Comes back with swift build.

## 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.

## Where it is

Usually a `.build` folder inside a Swift package. DiskCity recognises it by what's inside, wherever it is.

## How to remove it

1. Quit swift-package, swift-build, swift-test, swift-run, swiftpm-testing-helper, xctest first.
2. Leave anything opened or changed less than 3 days ago (for a folder, its newest file counts). DiskCity waits that long too.
3. 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

- https://www.swift.org/documentation/package-manager/

Checked 2026-10-28.
