Say hello to a few extra gigabytes of space on your Mac with xcclear, a simple and easy to use command line application written in Go for cleaning unnecessary XCode files.
brew install lajosdeme/utils/xcclear
Run xcclear -d
to diagnose your storage:
Run xcclear -p
to purge all unwanted files from your storage:
flag | type | description |
---|---|---|
-d/--diagnose |
bool |
Diagnose the total space occupied by derived data, caches and other XCode related files. |
-p/--purge |
bool |
Clean all caches/unnecessary files. |
-c/--clear |
string |
Clean only the specified directories. Options can be: - derived : Derived Data.- device : iOS DeviceSupport (The latest iOS version will be kept.)- watch : watchOS DeviceSupport- simulator : 'CoreSimulator'- cache : Xcode caches located at ~/Library/Caches/com.apple.dt.Xcode - archives : Archives |
-v/--version |
bool |
Get the current version. |
go get github.com/lajosdeme/xcclear
If $GOPATH/bin
is on your $PATH
run xcclear -h
to see usage options.
If you have any suggestions or questions feel free to raise an issue or reach out to me directly via [email protected].
If this tool made your life easier you can thank me by buying me a coffee.