Reclaiming space from XCode mainly involves deleting files from
~/Library/Developer/CoreSimulator/Caches/dyld can be deleted safely.
xcrun simctl delete unavailable to delete old iOS simulators for runtimes which are not supported anymore.
~/Library/Logs/CoreSimulator can be deleted safely.
Delete archives no longer required from
~/Library/Developer/Xcode/Archives/. Note that you may need certain Archives for debugging purposes. You should not delete these if you want to debug deployed versions of your apps.
~/Library/Developer/Xcode/Derived Data/ can be deleted safely.
iOS Device Logs
~/Library/Developer/Xcode/iOS Device Logs can be deleted safely.
brew cleanup to remove old versions of installed formulae.
npx npkill to find and delete
node_modules/ folders across your computer.
npm cache clean --force to clear the ache from
yarn cache clean to delete cache from
Delete files inside