Xcode Cleaner

Select categories, copy the command, paste it into Terminal.

macOS Swift Xcode

This tool generates Terminal commands — it doesn't access your disk directly. Open Terminal and paste the generated script to clean up. Safe categories are re-created by Xcode automatically on next build or device connection.

Derived Data
Build artifacts, indexes, and intermediate files generated during compilation. Xcode rebuilds them on next build.
5 – 30+ GBtypical
rm -rf ~/Library/Developer/Xcode/DerivedData
Xcode Caches
General Xcode build cache stored in system Caches folder. Recreated automatically.
1 – 5 GBtypical
rm -rf ~/Library/Caches/com.apple.dt.Xcode
Swift Package Cache
Cached Swift Package Manager downloads. Re-downloaded from source on next build.
0.5 – 3 GBtypical
rm -rf ~/Library/Caches/org.swift.swiftpm
Unavailable Simulators
Old simulator runtimes that are no longer available (e.g. old iOS versions). Keeps active simulators intact.
1 – 15 GBtypical
xcrun simctl delete unavailable
Simulator Caches
CoreSimulator disk caches. Regenerated when simulators are launched.
0.5 – 3 GBtypical
rm -rf ~/Library/Developer/CoreSimulator/Caches
iOS Device Support
Debug support files for connected iPhones. Re-generated when you reconnect a device to Xcode.
2 – 10 GBtypical
rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport
Other Device Support
Debug support files for Apple Watch, Apple TV and Apple Vision Pro. Re-generated on device connection.
0.5 – 5 GBtypical
rm -rf ~/Library/Developer/Xcode/watchOS\ DeviceSupport ~/Library/Developer/Xcode/tvOS\ DeviceSupport ~/Library/Developer/Xcode/visionOS\ DeviceSupport
Archives Irreversible
App archives used for App Store submissions and crash symbolication. Only delete if you no longer need old builds.
Variesper project
rm -rf ~/Library/Developer/Xcode/Archives
Generated Command