CocoaPods folder (~/.cocoapods) on Mac: what it is and whether you can delete it

MACMAN FOLDER · 2026-11-16

Safe to delete now

What it is

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

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

  1. Quit Xcode and make sure no pod command is running.
  2. Move the contents of ~/Library/Caches/CocoaPods to the Trash. The next pod install downloads the libraries it needs again.
  3. 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.
  4. 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

Related folders

Get the free diagnosis

The scan is read-only. Diagnosis alone deletes nothing.