Menu

1 / 3

His Mac Cleaner Freed 3 GB. The Other 40 GB Was Hiding in “System Data”.

DEV Community: ios·Md Ayan bag·about 20 hours ago
#jNOU2I5n
#devtoios#devto#dev#library#system
Reading 0:00
15s threshold

A developer friend's MacBook Air kept saying the disk was almost full. He was already paying for CleanMyMac. He ran its clean-up, and it freed about 3 GB .

Then he looked inside the grey bar every Mac owner has learned to hate: System Data . About 40 GB came back from inside it.

The cleaner wasn't broken. It was looking in the wrong places. On a developer's Mac, most of the space isn't caches or logs. It's build files, simulators, package caches and old installers, all filed under System Data.

Check your own Mac in one command

It only measures; it deletes nothing.

du -sh ~/Library/Developer ~/Library/Caches ~/.npm ~/Library/Containers/com.docker.docker ~/Library/Application \ Support/MobileSync/Backup 2>/dev/null

Enter fullscreen mode

Exit fullscreen mode

A missing line means the folder doesn't exist (or Terminal needs Full Disk Access). Anything over 5 GB is worth a look.

1. Xcode build files

~/Library/Developer/Xcode/DerivedData rebuilds itself on the next build. Quit Xcode, then empty it.

2.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.