So I just updated my Mac with the latest macOS version 10.14.4 (18E226) but had to delete Xcode to make some space for updating the OS.
Currently I have 37 GB of free space, still while downloading Xcode
from the App Store it shows
There is not enough disk space available to install the product.
How much space is required?
I have already tried clearing all cache files.
How much space does Xcode need? On the App Store page for Xcode, it lists the size of Xcode 12.5 as 11.7GB. However, when you try and install it, you'll get an error message unless you have at least 40GB of free space.
The closest I could get to an answer was the comment about Xcode 13.2. 1 to this answer which says 45 GB needed to install, presumably using the AppStore though. The top answer to QA you linked says it now needs 49GB.
Xcode 11 supports on-device debugging for iOS 8 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 11 requires a Mac running macOS Mojave 10.14. 4 or later.
For Xcode 12 - 30 Gb free, 40 Gb free - show an error "There is not enough disk space available to install the product."
So in my case - I clean my ~/Library/Developer/Xcode/iOS DeviceSupport/ folder, 50 Gb free - and now I can download Xcode 12...
Launchpod shows it needs to download 11,16 Gb, but you need ~50Gb of free space
XCode 12 requires you to have 40GB or more disk space or you will get the error "There is not enough disk space available to install the product.".
One can try to make space by clearing old iOS simulators from
"~/Library/Developer/Xcode/iOS\ DeviceSupport/"
and "~/Library/Developer/Xcode/DerivedData/"
or
removing old xCode.
I was having the same problem. Even though macOS shows enough free space it does not have it as it accounts purgeable space as usable but I guess the installation of Xcode for some reason is not able to claim it. A lot of space if probably held by TimeMachine local backups. You can claim space back by freeing that space with the terminal command
tmutil thinlocalsnapshots / 10000000000 4
This frees 10GB (took a little over a minute on my 2014 MBPro)
It worked for me. I had 40GB free, even after deleting my previous xCode version but was unable to install. After running that tmutil command it worked
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With