Xcode failed to download. Use the Purchases page to try again. Xcode 9.3. MacOS High Sierra

℡╲_俬逩灬. 提交于 2019-12-03 08:46:19

I had the same issue and finally got this working, however I'm not sure exactly which step made it work, so I'm posting all of them.

From https://apple.stackexchange.com/questions/245406/how-to-fix-reset-app-store-app-on-mac-osx-el-capitan:

Delete:

~/Library/Caches/com.apple.appstore
~/Library/Caches/storeaccount
~/Library/Caches/storeassets
~/Library/Caches/storedownload
~/Library/Caches/storeinappd

I didn't have some of those folders, but I did have a couple of extras that looked fishy, so I deleted them too:

~/Library/Caches/storeassetd
~/Library/Caches/storedownloadd

Run sudo softwareupdate --clear-catalog [Note: I did this but I don't think it helped]

From http://osxdaily.com/2016/10/08/mac-app-store-temp-cache-folder/ (paraphrasing):

  1. Quit out of the Mac App Store
  2. Open Terminal and run open $TMPDIR../C/com.apple.appstore/
  3. Hit Return and the com.apple.appstore folder will open in the Finder of Mac OS
  4. Delete the contents of this folder

And finally:

  1. Navigate to ~/Applications in Finder and move Xcode to the Trash [Note: This step was necessary for me, but ymmv]
  2. Reboot
  3. Launch App Store. Search for Xcode. Install it fresh.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!