I have recently updated to Xcode 13.2 from the Mac App Store. While trying to fix an issue with a Swift package, I uninstalled it and now I cannot reinstall the package.
When I try to add a package from GitHub the process hangs immediately on "Preparing to validate".
I already attempted to restart Xcode, restart my mac, clean derived data, reset Swift package caches and update package versions to no avail.
Make sure to update Xcode to 13.2.1
They have just released the update that should fix it. See in the link that @mikeyh posted in the other answer: https://developer.apple.com/forums/thread/696504.