Xcode下载失败.使用“购买"页面再试一次. Xcode 9.3. MacOS High Sierra [英] Xcode failed to download. Use the Purchases page to try again. Xcode 9.3. MacOS High Sierra

查看:227
本文介绍了Xcode下载失败.使用“购买"页面再试一次. Xcode 9.3. MacOS High Sierra的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将MacOS升级到High Sierra后,我尝试更新Xcode并获取此信息:

After upgrading MacOS to High Sierra, I tried to update Xcode and get this:

Xcode下载失败.使用购买"页面重试

Xcode failed to download. Use the Purchases page to try again

我卸载了Xcode,然后尝试重新安装,但没有成功.

I uninstalled Xcode and try to install again with no success.

我阅读了一些技巧来解决此问题,但无济于事...

I read some tips to solve this but nothing helps...

  1. 删除〜/Library/Cookies/com.apple.appstore.plist(没有此类文件)
  2. 使用AppStore调试菜单...(菜单从未与启用该菜单的命令一起出现)

  1. Remove ~/Library/Cookies/com.apple.appstore.plist (no such file)
  2. Use AppStore Debug menu... (menu never appears with the command to enable it)

默认写入com.apple.appstore ShowDebugMenu -bool true

defaults write com.apple.appstore ShowDebugMenu -bool true

删除/private/var/folders///C/com.apple.appstore的内容(已找到文件夹,内容已删除,没有任何变化)

Remove contents of /private/var/folders///C/com.apple.appstore (folder located, contents removed, nothing changes)

是的,驱动器有足够的空间

Yes, the drive has enough space

推荐答案

我遇到了同样的问题,终于解决了这个问题,但是我不确定是哪一步使它起作用,所以我将它们全部发布.

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.

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

删除:

~/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

运行sudo softwareupdate --clear-catalog [注意:我这样做了,但我认为这没有帮助]

来自 http://osxdaily.com/2016/10/08/mac-app-store-temp-cache-folder/(措辞):

  1. 退出Mac App Store
  2. 打开终端并运行open $TMPDIR../C/com.apple.appstore/
  3. 命中返回"和com.apple.appstore文件夹将在Mac OS的Finder中打开
  4. 删除该文件夹的内容
  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

最后:

  1. 在Finder中导航至~/Applications并将Xcode移至垃圾箱 [注意:这对我来说是必需的,但是ymmv]
  2. 重新启动
  3. 启动App Store.搜索Xcode.重新安装.
  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.

这篇关于Xcode下载失败.使用“购买"页面再试一次. Xcode 9.3. MacOS High Sierra的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆