CocoaPods folder (~/.cocoapods) on Mac: what it is and whether you can delete it
MACMAN FOLDER · 2026-11-16
~/.cocoapods~/Library/Caches/CocoaPods
What it is
~/.cocoapodsSafe to delete nowCocoaPods spec repo — regenerated
~/Library/Caches/CocoaPodsSafe to delete nowLibrary download cache
Why it grows
~/.cocoapods holds the spec repos CocoaPods uses to look up libraries. If your setup dates from the older approach, it may hold a full download of the repo with every library's specs, which is large on its own.
~/Library/Caches/CocoaPods keeps the library sources downloaded by pod install, and your projects reuse them. It piles up each time a library version changes.
Before you delete
~/.cocoapodsDownloaded again with pod repo update
~/Library/Caches/CocoaPodsThe app rebuilds it after deletion
How to check its size
In Finder, choose Go > Go to Folder (Shift-Command-G), enter ~/.cocoapods or ~/Library/Caches/CocoaPods, then use Get Info (Command-I) to see the size.
In Terminal, run du -sh ~/.cocoapods ~/Library/Caches/CocoaPods to see the size.
The free MacMan Scan diagnosis lists this folder with its size and grade. The scan is read-only.
How to shrink it safely
- Quit Xcode and make sure no pod command is running.
- Move the contents of ~/Library/Caches/CocoaPods to the Trash. The next pod install downloads the libraries it needs again.
- Look inside the repos folder in ~/.cocoapods first. If your company or team added a private spec repo, leave it in place. If you delete it, you have to add it again.
- Since CocoaPods 1.8, public specs come from a CDN (trunk), so pod install gets the specs it needs even without the old full public repo (usually master) in repos. To refresh the repos you keep, use
pod repo update.
How MacMan Scan handles this folder
~/.cocoapodsMacMan Scan lists this folder only when it is 1 GB or larger, as one whole-folder row under "Check yourself" on the cleanup screen, unchecked. It becomes a deletion target only if you check it yourself.
~/Library/Caches/CocoaPodsMacMan Scan lists this folder on the cleanup screen, checked by default. Nothing is deleted until you press the delete button yourself.
Related folders
- Xcode DerivedData on Mac: what it is and whether you can delete it
- Homebrew cache folder on Mac: what it is and how to clear it
- npm cache (~/.npm) on Mac: what it is and whether you can delete it
The scan is read-only. Diagnosis alone deletes nothing.