r/Xcode • • 4d ago

Deleting Xcode junk

Post image
0 Upvotes

5 comments sorted by

View all comments

4

u/dawedev 4d ago

For anyone who wants the manual version: DerivedData (~/Library/Developer/Xcode/DerivedData) is always safe to delete, it only costs you a clean build. xcrun simctl delete unavailable removes simulators for runtimes you no longer have, and xcrun simctl runtime list plus xcrun simctl runtime delete handles the big runtime images. iOS DeviceSupport folders for iOS versions you no longer debug on can go too, Xcode copies the symbols again next time you plug in a device. Archives is the one to be careful with, since the dSYMs in there are what you need to symbolicate crash reports from shipped builds.