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,<
For Xcode 12 you need to have more than 32GB free space.
Delete the old Xcode application first.
Install OmniDiskSweeper which will show the total space used by the folders, which will be useful to detect the folders which occupy lot of space.
Go to Users -> your_user_name -> Library -> Developer (these are old xcode contents), delete all the contents here, since we are installing new xcode, the old contents are not necessary.
If you have Android Studio and willing to delete it, and install later, then delete the Android Studio application and on OmniDiskSweeper, go to Users -> your_user_name -> Library -> Android (these are old android studio contents), delete all the contents here.
Which will give you lot disk space.
this command works perfectly, it removed AFPS snapshots
tmutil thinlocalsnapshots / 21474836480 4
Got the reference from this forum
https://forums.developer.apple.com/thread/110533
The App Store app does not account for the purgeable space. I have filed a feedback on this issue some weeks ago to the Apple Feedback Program: it seems fixed since macOS Catalina, as now it works without workaround.
For previous MacOS see this answer
Always late to the party, but anyway... i noticed a correlation with time machine backups, since i had a failed backup some time earlier and didn't connect my time machine hdd since.
After starting the Time Machine Backup and properly cancelling it soon after, i was able to install the update. Try it :)
It's not the prettiest solution, but I simply open Applications folder in Finder and drag Xcode to the bin, and delete it! :D
Then open App Store, find Xcode and install it again.
This still allows future updates from App Store. I have done this already multiple times over the last 6 years, especially for major version updates, as this always ended up being the simplest solution for me when I encounter such issues. This way you are not required to tamper with Developer folder data, unless you want to do some cleanup.
p.s. I found no harmful effects of this approach on my projects.
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.