I use Xcode only for macOS development, not for iOS, TVOS or WatchOS development. They take up most of the space in Xcode. I will show which files to delete to save atleast 20 Gb of space (as of Xcode 12.5) Run all commands as sudo
cd /Applications/Xcode.app/Contents/Developer/Platforms
rm -rf AppleTVOS.platform
rm -rf AppleTVSimulator.platform
rm -rf iPhoneOS.platform
rm -rf iPhoneSimulator.platform
rm -rf WatchOS.platform
rm -rf WatchSimulator.platform
You can also remove your user CoreSimulator cache
rm -rf ~/Library/Developer/CoreSimulator
If you had CommandLineTools installed before Xcode, you don't need it anymore.
rm -rf /Library/Developer/CommandLineTools