Solution for me:
I have the same issue, unpacking with Archive Utility (The default app with the green logo, idk its English name) the xip file stored on an external ssd, and I was stuck at the end for 2 hours.
I analyzed with cleanmymac (im not sponsored) the space of all my storage, and there was 20gb from nowhere on my computer's ssd. So I looked in the path, and there was Xcode.
With more details:
Force to quit Archive utility (so it doesn't delete its cache)
(If you have software that can show you the sizes taking the most place on your storage, use it to find the path), for me the path was /private/var/folders/41/x4clwyh51x157mh_1ty5c6880000gn/T/com.apple.AUHelperService/85EE5F7B-09FD-4B51-89F1-140FBA71258B/Xcode.app. It is the path Archive utility stores the file it is unpacking. This path will probably different for everyone, so go to /private/var/folders/ and try to follow the >20gb size hidden somewhere by looking up space of every directories.
When you finally find it, move it to your applications or anywhere you want to.
I am still doing it rn, so when ill have finished to move it, I am not sure of the app's integrity, I will comment my own post to tell how it went