freedisk.spaceAll guides

How to free up space from Xcode: DerivedData, simulators and device support

Most of the space Xcode uses sits in four places inside ~/Library/Developer: DerivedData, simulators and their runtimes, device support files, and Archives. DerivedData is always safe to delete because Xcode rebuilds it. Remove simulators with xcrun simctl or Xcode's own settings, and keep any Archives for builds you have shipped.