I\'m using the Mac OS to install the XCode10.1.
I have 18.43GB free disk space in the mac,
but when I click the install button on the Xcode from the app store,<
After trying almost everything that i found can filter what exactly worked for me. Catalina 10.15.7 Xcode12.
shift + command + . //yes its a **dot** key on keyboard
dd if=/dev/zero of=/Users/<YOUR_USERNAME>/file bs=15m
hit
entercntrl+c
Go to App Store and update the Xcode.
Just run below two commands in your terminal:
cd ~/Library/Developer
rm -rf Xcode
The same here for Xcode 11.2. It is mandatory to have at least 28GB free.
removing different directories such us, caches, .eclipse, .julia directories to free up.
UPDATE: 24GB with lastest version: 11.2.1
Mine is a weird solution. I did not have storedownloadd folder previous solutions talked about and manually downloading was not a real solution(what about future updates)
I manually created storedownloadd In the following directory re-started App Store, although loader took forever(restarted MacBook hoping for a change) it started downloading :)
~/Library/Caches/storedownloadd
I solved it by upgrading MacOS as I'd have an old version installed. After a restart it magically had space :D (the same by the way)
Trying to update to xcode 11.3.1 today, was in the problem like this. However, I can confirm that the download starts right after free space reaches 24GB as per some of the comments above.
I did the following:
- remove ~/Library/Caches/storedownloadd
- remove ~/Library/Developer/Xcode/iOS DeviceSupport/
- remove some files inside ~/Library/Developer/Xcode/DerivedData
- remove other unused files