Xcode on Mac App Store can't install , show disk space not enough

后端 未结 30 1814
执念已碎
执念已碎 2021-01-29 18:33

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,<

相关标签:
30条回答
  • 2021-01-29 19:14

    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.

    0 讨论(0)
  • 2021-01-29 19:15

    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

    0 讨论(0)
  • 2021-01-29 19:16

    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

    0 讨论(0)
  • 2021-01-29 19:17

    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 :)

    0 讨论(0)
  • 2021-01-29 19:18

    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.

    0 讨论(0)
  • 2021-01-29 19:19

    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:

    • Quit the Mac App Store.
    • Delete directory ~/Library/Caches/storedownloadd
    • Relaunch Mac App Store.

    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.

    0 讨论(0)
提交回复
热议问题