xcodemacosmacos-catalina

Unable to Update Xcode: Not enough space


I am trying to update Xcode from 11.2.1 to 12.4. I installed Xcode from the app-store, so I am trying to update it from there itself.

I have 27 GB of free space, but every time I try to update, it says I do not have sufficient space.

enter image description here

I don't think there is anything else I can delete. I removed the deviceSupport, derivedData, archives, unavailable simulators etc. I am on MacOS Catalina 10.15.7. This MacBook only has 128GB hard drive.

Without updating Xcode I can't run My iOS 14 test devices with this.I dont need the latest version, just the version capable of running iOS 14 devices.

How much space does this Xcode consume? How can I update this?


Solution

  • All the above answers are correct and gave me a good move. However it was impossible for me to clean 40-50 or more gigs from my laptop.

    I purchased a new MacBook M1 Pro 256GB laptop. However now I am following the below to keep more space available.

    1. Install only most wanted software. I have multiple laptops, two macs and one windows. My windows PC has all the software I need. my old MacBook is now for Java based developments, emails, docker and so on. My M1 Macbook pro is only for XCode and Flutter, mobile based stuff.

    2. I installed a XCode cleaner, downloaded from app store. I think I had to buy that.

    3. My macbook do not have lot of other files now. I store them in cloud. When needed I download them and edit. Otherwise they will be handled in Windows PC where I have 1TB and more.

    ADVICE: IF YOU DO DEVELOPMENT STUFF IN MAC, BETTER BUY A PRO WITH AT LEAST 256GB IN IT!