Open Terminal from Mac and run commands one by one.
> sudo rm -rf /.DocumentRevisions-V100/
> rm -rf ~/Library/Developer/Xcode/DerivedData
> rm -rf ~/Library/Developer/Xcode/Archives
> rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport
> rm -rf ~/Library/Caches/com.apple.dt.Xcode
> xcrun simctl delete unavailable
What happens ??
1. Removes the snapshot of opened documents.
2. Removes all derived data that generated from Xcode projects.
3. Removes the archived builds from all apps.
4 iOS device support files dropped.
5. Clear caches from Xcode.
6. Deletes unused & outdated iOS simulator versions.