Get your disk space back from Xcode
What each of Xcode's folders is, whether it's safe to delete, and how to do it yourself, with or without Derived. Found a folder you don't recognize? See What is this Xcode folder?
Free up space from Xcode
How to delete DerivedData
Yes, deleting Xcode's DerivedData is safe: Xcode rebuilds it on the next build. Here is where it lives, three ways to clear it, and how to delete just one project.
How to delete simulator runtimes
Each iOS simulator runtime takes about 8 GB. List the ones you have, see when you last used them, and delete the rest with xcrun simctl, safely.
Why Xcode takes so much space
Xcode's own folders can quietly reach tens of gigabytes: DerivedData, simulators, archives, device support and package caches. Where each one lives and what is safe to remove.
Deleting iOS DeviceSupport
iOS DeviceSupport holds debug symbols Xcode copies from each iPhone or iPad you connect, about 6 GB per iOS version. It is safe to delete old versions; here is how.
Can I delete Xcode archives?
Xcode archives hold the dSYMs that symbolicate crash reports. Keep them for every build people still run; old ones are safe to remove from Organizer or Finder.
Clearing SwiftPM and CocoaPods caches
Clear Xcode's Swift package caches, the global SwiftPM cache and the CocoaPods cache with the right menu commands and Terminal commands. Everything comes back on the next resolve.