Go to Startup Disk and select your Mac’s hard drive, which is usually called ‘Macintosh HD.’. Click Restart and wait for your Mac to reboot. It should boot up normally, breaking you out of the macOS update loop. Now you can follow these tips to free up enough space for the macOS update. Single-user mode. Turn on your Mac, then immediately press and hold Command-R to start up from macOS Recovery. Select Disk Utility from the Utilities window, then click Continue. From the Disk Utility sidebar, select the volume that you're using, then choose File Mount from the menu bar.
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,
it’s always show the “Not enough storage disk space, you can’t install the product” alert message.
How to fix the problem in the MacOS Mojave(10.14.1)?
Thank you very much.
What you can also do is manually download Xcode and install it.
(Without using the app store update)
Therefor do the following steps:
See also this post here: https://discussions.apple.com/thread/8622103?answerId=250008933022#250008933022
Check the “purgeable” space of your APFS disk with Disk Utilities..
It seems Finder count this space in free space, but not App Store..
But you can trick macOS to clean up APFS by creating a huge garbage file, then deleting it.
To create the file I used the command:
letting dd run for about 30 seconds, then killing it with ctrl+c, and deleting the file:
Then App Store happily installed update..
Open finder: in menu above go to -> Go to folder:
~/Library/Developer/Xcode/
Delete old simulator files on:
~/Library/Developer/Xcode/iOS DeviceSupport/
Delete all files derived data on:
~/Library/Developer/Xcode/DerivedData
An easy way to accomplish these is by using DevCleaner for Xcode: https://apps.apple.com/us/app/devcleaner/id1388020431?mt=12
I had 52 GB available (39 GB purgeable), but the stupid Mac App Store in macOS 10.14.4 still said it had not enough free space to complete my purchase of Xcode 10.2, even after a restart. Solution:
~/Library/Caches/storedownloadd
My Xcode “purchase” then worked on the first try.
For the curious: At the time I deleted that directory, it did not contain any app downloads. It only contained a tiny (85 KB) SQLite database (.db
, -shm
and -wal
files), which in turn contained four SQLite tables, three of which had zero rows and one of which had only one row and one column containing the schema version number! So this is apparently some weird bug in Mac App Store.
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
the problem with time machine!
please remove old snapshoots
etc
I had the same problem (also a 120gb ssd), but 18gb is still not enough to install Xcode.
See this post:
https://forums.developer.apple.com/thread/30235
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
The above steps resolved the issue for me.
MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports)
macOS Mojave
Version 10.14.6 (18G87)
this command works perfectly, it removed AFPS snapshots
Got the reference from this forum
Most of us are keen to update to a new version of macOS as soon as it is available. macOS Big Sur has been out since November 12, still, many users couldn't update their Macs straight away. It’s very frustrating if you see a message telling you that you don’t have enough space to install the new macOS. Don’t worry, though. There are lots of things you can do to fix it. We’ll show you what they are in this article.
While the installer for Big Sur takes up less than 16GB of space, you should make sure that you have at least 20GB of free space on your startup disk before you try to download and install it. The more free space, the better. Your Mac uses disk space to store temporary files and provide storage for active apps and tasks (which is what RAM does), so you should never be running with almost no disk space left.
CleanMyMac X makes it very easy to free up disk space on your Mac by identifying junk files and allowing you to get rid of them with a click. It can also detect large and old files and show you the files taking up most space and uninstall applications.
Complete the following steps to ensure your Mac is ready to update to Big Sur.
Back up all files and data that are stored on your Mac. Preferably twice to different locations. While upgrading to Big Sur is safe, you never know when something might go wrong. If you use Time Machine or another backup tool, run a manual backup just before you upgrade. And, if you can, clone your startup disk to an external drive, too.
If you don’t already have CleanMyMac X installed, download it for free here. This tool will help you clear some space and delete large and old files quickly.
Media files usually gobble up a large amount of disk space. And the worst thing is they are scattered around Mac’s folders, making it difficult to find and remove them. CleanMyMac X proves to be useful here:
Apple has provided a method for you to manage storage by showing you what is taking up disk space and making recommendations for deleting. It’s not as quick and easy as CleanMyMac X, but it can help you save disk space. Here’s how to use it.
There is one other thing you can try if you keep getting a message telling you that you do not have enough space to install Big Sur. You should only try it if you are sure there is enough space on your startup disk and that the message is wrong. And it will only work if you use Time Machine to back up your Mac.
Time Machine stores local snapshots on your Mac. Your Mac is supposed to count the space used by snapshots as free space, which is why it looks like you have enough space for the installation.
However, it seems that the installer may not realize the space is free. The solution is to delete the snapshots. This won’t remove backups on your backup disk, just snapshots on your Mac.
Open Time Machine from System Preferences. Uncheck Back Up Automatically and wait some time till Time Machine deletes snapshots. Then you can turn Time Machine back on.
If you’re familiar with Terminal, you can try deleting local snapshots manually.
tmutil listlocalsnapshots /
com.apple.TimeMachine.2020-10–09-002010.local
sudo tmutil deletelocalsnapshots
sudo tmutil deletelocalsnapshots 2020-10–09-002010
Hopefully, this helped you free up some space and update your Mac to the latest OS. If you're just preparing your Mac for the upgrade, don't forget to back up your data before you start clearing space. So you won't be afraid of losing anything important.