Xcode update problems

I'm trying to update from Xcode 12.1. I had 50GB free on my MacBook. I went to the App Store, found Xcode, and clicked "Update." The blue ring filled 98% of the way and then stopped. An error message said there wasn't enough room to update Xcode. I now have 15GB of storage space.

What do I do now? How much storage space do I need to install Xcode? How is 50GB not enough?

Yes - downloading Xcode can be tough. I've had it "stall" many times and when I try again and it will finish - eventually.

One theory is the MacAppStore is messing up: If you are not running macOS Big Sur then you can only download up to Xcode 12.4 - but since you mentioned a blue ring, that suggests you are trying to download via the MAS which I don't think will easily offer you anything but the latest. A great site to keep track of this is on https://xcodereleases.com. Older releases of Xcode can be found here: https://developer.apple.com/download/more/?=xcode I think this requires a paid dev account.

Another theory is that the space left number is approximated by temporary usage and you really did run out of space for some stage of the download. Offline TM backups and things can take away space temporarily. I think there are stages of the download where it expands the download file and authenticates the release.

I've seen interrupted internet access stall Xcode downloads.

Really this is a constant battle - I'd love to hear more discussion of how others deal with this.

Xcode update problems
 
 
Q