What is the Caches/org.swift.swiftpm folder on my Mac?

It belongs to Swift Package Manager / Xcode. Here’s what’s inside and the right way to deal with it.

Short answer

This is the shared cache for Swift packages: repositories and manifests that Xcode and swift build download for your projects. It’s safe to clear. Packages are fetched again the next time a project resolves them.

Location: ~/Library/Caches/org.swift.swiftpm

What’s inside

  • Cloned package repositories
  • Package manifests and collections
Our verdict: Safe. Your Mac or your apps recreate this automatically. Removing it won’t lose anything you made.

The SwiftPM way

swift package purge-cache

In Xcode, File › Packages › Reset Package Caches does the same for one project.

Find every folder like this on your Mac

Tidy Mac’s Space Map shows every big folder at its real size, and Apps › Leftovers finds folders left by apps you already deleted.

Frequently asked questions

Can I delete Caches/org.swift.swiftpm?

Safe: Your Mac or your apps recreate this automatically. Removing it won’t lose anything you made. This is the shared cache for Swift packages: repositories and manifests that Xcode and swift build download for your projects. It’s safe to clear. Packages are fetched again the next time a project resolves them.

Where is Caches/org.swift.swiftpm on my Mac?

~/Library/Caches/org.swift.swiftpm. In Finder choose Go › Go to Folder and paste the path.

How big does Caches/org.swift.swiftpm get?

Usually 200 MB – 8 GB.

Keep reading