I wanted to update my Xcode to Xcode 13, because it just came out yesterday. But now I'm facing the following issue while trying to update it from the App Store: The App Store shows me, that I don't have enough disk space, although I have 39 GB free storage on my Mac.
I also just updated to the newest Software Version for my Mac (macOS Big Sur 11.6) and then restarted my Mac, but it´s still not working. I looked through a lot of forums, but I can´t figure out why it isn't working. It seems to be a common issue for a lot of people when a new version for Xcode releases.
Does anybody faces/faced the same issue and knows a solution for this problem?
I solved my problem by freeing up more space on my Mac by uninstalling large applications and reinstalling them after the Xcode update was successful. In the end, before updating Xcode through the App Store I had about 4x - 5x more disk space than Xcode actually needed.
For anyone else I would still suggest to follow @jva´s answer, because I think that my solution was very device specific. But if nothing works I would suggest to try out freeing more space on your device.