Xcode占用空间较大清理

cd /Applications/Xcode.app/Contents/Developer/Platforms
du -shx *

283M	AppleTVOS.platform
 28M	AppleTVSimulator.platform
262M	MacOSX.platform
168M	WatchOS.platform
 35M	WatchSimulator.platform
6.4G	iPhoneOS.platform
 35M	iPhoneSimulator.platform

sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/watchOS.simruntime
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/tvOS.simruntime

参考

  1. Xcode12 占用空间过大的解决方法
  2. Xcode12 占用空间过大的解决方法及彻底删除Xcode