Eyes, JAPAN Blog > Xcclean: Recover Disk Space From Xcode

Xcclean: Recover Disk Space From Xcode

sascha

この記事は1年以上前に書かれたもので、内容が古い可能性がありますのでご注意ください。

A while ago I ran low on disk space on my Mac. It turned out Xcode is accumulating a lot of dispensable data, but never really cleans up after itself. At the time I looked into it and found several locations where some cleanup was possible. I was able to recover 36 GB of disk space at the end. But it was a bit tedious to do.

Since it is a task I occasionally might have to do, I put together a small CLI application to get some assistance: I called it xcclean and it is available on Github. It makes it more convenient to display contents of the folders Xcode stores its data and gives you options to purge them or selectively delete their content.

Because I find it hard to trust any pre-compiled binaries when their main purpose is to delete data from my hard disk, I made the sources available on Github. Optionally, xcclean can also be installed via homebrew:

Add my tap:

brew tap saschaholesch/homebrew-ntsc

 Install using:

 brew install xcclean

If the formula conflicts with one from Homebrew/homebrew or another tap, you can install using:

 brew install saschaholesch/homebrew-ntsc/xcclean

Or install via URL:

brew install https://raw.githubusercontent.com/saschaholesch/homebrew-ntsc/master/xcclean.rb

I hope you find it useful. Pull requests to improve and advance xcclean are very welcome.

  • このエントリーをはてなブックマークに追加

Comments are closed.