A simple interactive terminal script to clean up Xcode DerivedData, stale simulators, etc
Requires HomeBrew and ThoughtBot's Pick tool.
Don't come to me crying if it deleted something you didn't expect
chmod +x cleanxcode
./cleanxcode
This will:
- Clean Docset disk images (.dmg) from
$HOME/Library/Caches/com.apple.dt.Xcode/Downloads/
. - Interactively pick and remove plugged device symbols from
$HOME/Library/Developer/Xcode/iOS DeviceSupport
. - Interactively pick and remove build artifacts from
$HOME/Library/Developer/Xcode/DerivedData
. - Interactively pick and remove build artifacts from
$HOME/Library/Caches/AppCode*/DerivedData
. - Clean stale CoreSimulator devices.
Licensed under GPLv3. See the LICENSE file.