← All guides

CocoaPods, SPM & Carthage caches

CacheCleaner guides · Updated July 18, 2026

Each iOS dependency manager keeps a global cache and per-project folders. All of it re-downloads from the lockfile – the only cost of clearing is the next pod install / swift package resolve being slower.

Swift Package Manager

du -sh ~/Library/Caches/org.swift.swiftpm   # global package cache
# per project:
rm -rf .build                               # SwiftPM CLI builds
# Xcode-managed SPM checkouts live inside DerivedData

CocoaPods

pod cache list                     # what's cached
pod cache clean --all              # ~/Library/Caches/CocoaPods
# per project – regenerated by pod install:
rm -rf Pods

Old master-spec checkouts in ~/.cocoapods/repos can be another GB+ if you've used pods since before the CDN switch:

pod repo remove master   # if it's still there – the CDN replaced it years ago

Carthage

~/Library/Caches/org.carthage.CarthageKit   # downloaded & built frameworks
# per project:
rm -rf Carthage/Build Carthage/Checkouts

CacheCleaner clears SPM, CocoaPods and Carthage global caches from its Package Managers section and finds per-project Pods/ and .build/ folders in the whole-disk scan.

Get CacheCleaner for Mac