Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 10.2 space required

Tags:

xcode

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.

like image 919
Ashish Kumar Avatar asked Apr 11 '19 16:04

Ashish Kumar


People also ask

How many GB do you need for Xcode?

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.

How much space does Xcode 13 require?

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.

Which is minimum system requirement of macOS for Xcode 11?

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.


Video Answer


3 Answers

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

like image 71
PavelK Avatar answered Oct 16 '22 16:10

PavelK


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.

like image 37
darklord Avatar answered Oct 16 '22 16:10

darklord


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

like image 22
Cortex Avatar answered Oct 16 '22 16:10

Cortex