Xcode won't download on Mac

I am trying to download Xcode on my Mac but it always says there isn’t enough free space. I checked my storage and there is nearly 40GB free and Xcode only needs 12GB. I tried downloading via the web version too, and it wouldn’t expand the file either due to a space issue. I have cleared more space but still failed at every attempt. Any way to fix this?

1 Like