refreshXcode is a script to delete Xcode's cache.
- ~/Library/Developer/Xcode/DerivedData
- ~/Library/Developer/Xcode/iOS DeviceSupport
- ~/Library/Developer/Xcode/Archives
brew tap takkumattsu/homebrew-refreshXcode
brew install refreshXcode
# The default behavior is to delete the following directories.
# ~/Library/Developer/Xcode/DerivedData
# ~/Library/Developer/Xcode/iOS DeviceSupport
# ~/Library/Developer/Xcode/Archives
refreshXcode
# dry-run
refreshXcode -n
# or
refreshXcode --dry-run
# help
refreshXcode -h
# or
refreshXcode --help
# Delete ~/Library/Developer/Xcode/DerivedData
refreshXcode -D
# Delete ~/Library/Developer/Xcode/iOS DeviceSupport
refreshXcode -i
# Delete ~/Library/Developer/Xcode/Archives
refreshXcode -A
# Delete ~/Library/Developer/Xcode/iOS DeviceSupport and ~/Library/Developer/Xcode/Archives
refreshXcode -iA