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

后端 未结 30 1822
执念已碎
执念已碎 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条回答
  •  -上瘾入骨i
    2021-01-29 19:13

    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:

    dd if=/dev/zero of=~/hugefile bs=100m
    

    letting dd run for about 30 seconds, then killing it with ctrl+c, and deleting the file:

    rm ~/hugefile
    

    Then App Store happily installed update..

提交回复
热议问题