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

后端 未结 30 1771
执念已碎
执念已碎 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:06

    After trying almost everything that i found can filter what exactly worked for me. Catalina 10.15.7 Xcode12.

    1. Go to your home folder in finder and make sure to enable hidden files shift + command + . //yes its a **dot** key on keyboard
    2. type dd if=/dev/zero of=/Users/<YOUR_USERNAME>/file bs=15m hit enter
    3. monitor the size growth of file named file in finder
    4. when it reaches something around 4-5GB kill the terminal with cntrl+c
    5. open disk utility and check purge size start copying and pasting that huge file named file that you just made and monitor the purge size. When it will get 3-4GB its now time to delete all that huge files and empty trash.
    6. restart
    7. open terminal go to /library/developer/
    8. delete all folder and files inside coreSimulator (this was the only resort for me)
    9. go to /library/developer/xcode/deriveddata and delete all folders and files inside
    10. empty trash

    Go to App Store and update the Xcode.

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

    Just run below two commands in your terminal:

    cd ~/Library/Developer
    
    rm -rf Xcode
    
    0 讨论(0)
  • 2021-01-29 19:08

    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

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

    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
    
    0 讨论(0)
  • 2021-01-29 19:09

    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)

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

    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

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