"Not enough free space" when trying to install XCode even though there's ~7x more free space than required

The title says it all...

I am trying to install XCode, constantly getting that message, no matter what I try. Currently I have 41+ GB free space, XCode requires 6.1 according to App Store.


Please suggest how to solve this issue.


Thanks a lot in advance!

Alright, so, I cleaned up my disk. Finder shows 63 GB free. "Storage" tab in "About This Mac" shows the same...


However, using QuickLook on my disk (one and only disk I got with computer) shows 17 GB free only?!?


df -h
also shows really strange output:


Filesystem      Size   Used  Avail Capacity iused               ifree %iused  Mounted on
/dev/disk1s1   113Gi   97Gi   13Gi    89% 1427126 9223372036853348681    0%   /
devfs          332Ki  332Ki    0Bi   100%    1150                   0  100%   /dev
/dev/disk1s4   113Gi  2.0Gi   13Gi    14%       2 9223372036854775805    0%   /private/var/vm
map -hosts       0Bi    0Bi    0Bi   100%       0                   0  100%   /net
map auto_home    0Bi    0Bi    0Bi   100%       0                   0  100%   /home


I am not using and never used Time Machine backups on this computer, there are no "purple bands" in "Storage" window, I tried to reindex the volume (by adding and removing a folder in Spotlight settings), my trash is completely empty, I tried to reboot couple of times...


Why is this happening??

Might want to ask support about the store, but in the mean time, try downloading from here, instead: https://developer.apple.com/download/more/

Free space on disk, and available space on a working partition/Volume via the Finder are not the same thing.


Assuming your macOS is modern, your single 'disk'/SSD has more than one partition/Volume.


You should only be concerned with what the Finder says on your boot partition. Don't be chasing ghosts, otherwise.


Did you manually download and install Xcode 10.1.xip from here, yet?

I'm having the same problem though i have 17 GB free space. Looks like xcode needs more free space.

17 GB free is not nearly enough.


  • The OS needs 8~12 GB free just run, at least
  • The download is about 5 GB
  • You need around 7 GB or more to put the unpacked files during the install
  • You need around 7 GB or more for the installed files

- all at the same time...that's around 30 GB. Minimum.


Even with 50 GB free (don't forget to empty the trash), you're working yourself into a corner fast. Sounds like it's time for you to buy a bigger boot drive. Figure out how much you need, then double it, then double it again.


Good luck.

Hi, I am having the same issue. I recently upgraded to MacOS Mojave from MacOS Sierra and the Xcode application stopped launching upong upgradation. I therefore removed it using 'sudo rm -r /Applications/Xcode.app'. However when I am trying to reinstall it, it is showing not enough disk space error even though I have 30GB of disk space available.


Were you able to solve your issue after you cleaned up your disk to increase the disk space?


Thank You.

😟 Same problem for me.
I got 91GB freespace

Running latest 10.14.4


Worst thing is that I can't find xcode 10.2 from https://developer.apple.com/download/more/ currently.

Same here - I have 250GB free space


EDIT: solved it by removing a lot of purged disk space via daisydisk.

Solved too by force purge purgeable space. Follow this method:

https://www.jackenhack.com/mac-os-remove-purgeable-high-sierra/


I would say this is appstore bug.

This morning my MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports) with 250GB ssd and 103GB free space running the latest MacOS Mojave 10.14.6 prompted me that there was not enough space available to upgrade Xcode to the lateast v.11...

I also have the same problem. I enrol Apple Beta program and start downloading of Mac OS Catalina. And after that xcode start to downloading from AppStore. (P.S i don't install new MacOS itself)

It strange, but it works!

Same issue here. Deleted Xcode and installed it. That worked.

Hi, i had the same problem. I restarted my computer and that worked

The same thing happens to me and I can't solve it, I tried to create an app for my website https://espias.eu/camaras-espias/, but when I try to install XCode I get the same problem.


I would appreciate the answers.

hi

i had the same issue. But i did install xcode 11.3 successfully by following this


Step 1 - Logout from your App store accound

Step 2 - Restart your MAC

Step 3 - Sign in back to your App store and then download xcode.


Thanks

Any one have any ideas on this if you have lowish space left. Trying to install 11.4.1 and getting same error message. Finder says I have 18GB free and Appstore lising says that its 8.1GB so not sure why it can't install.


I read above that someone suggested that them having 17GB isn't enough space for the OS to run. My MacOS has 75GB and my Windows has 175GB as I only use MacOS for XCode and have a few utilities (Avast, Git, BBEdit, Slack) - What is the minimum space macOS needs, when installing it doesn't indicate that it needs to have minimum space to run efficiently. Surely having 20gb free would be sufficient?


Any advice on this would be great, as I did shrink my Windows partition by 25GB, but can't find a way to expand my macOS one with the extra 25GB which is free on the drive now. I assumed this would be fairly simple, but looks like I may have to reinstall both systems to alter the sizes. Would rather do this once I have an indication of what macOS needs to run.

>Surely having 20gb free would be sufficient?


Again, no. Again, the system needs around 10 just to run for free/swap space, the download needs 7, the unpacked files need 12~15, then you need another 7~12 to install. Do the math. And that's just by the numbers. Actual needs may be more which is why the suggestion is to get several tens free. And even if you do squeek things out so you get an install with minimum free, you're right back against the wall as soon as you start working.


Chasing minimums and trying to do this work is a fool's errand.

Kinda relevant. I already have Xcode, but I can't seem to update to Xcode 11.5. I just deleted the Xcode beta and I currently have ~17 GB of free space at the moment. So should that be enough, or do I need to free up more storage? Or would I end up deleting half my MacBook for nothing?

No, 17 GB is not enough. Should have probably 50 or more.

Oh, ok. Just wasn't sure since I got the last update with around the same amount of free space.

I had the same problem with Xcode12beta_3.xip. Basically, you just need to play around with it. Free up some space, turn off Time Machine's Back Up Automatically option, restart your Mac, move the XIP file from the Downloads folder to another folder, and then back to the Downloads folder, and then expand it.
solved as per preet41 suggestion:
logout App Store - restart Mac - signin and download.
my free space is 25GB
the simpliest solution is to use command line if you have *.xip* file
xip -x <filename>.xip
Made over 10 attempts already. 22 GB was not enough. 30 was enough. xcode 11.6 - 8.1 GB. Now in the process of updating.
Worked the following: sign out from AppStore -> Restart Mac -> Sign in to AppStore -> Download Xcode

Thank you all for a help !
"Not enough free space" when trying to install XCode even though there's ~7x more free space than required
 
 
Q