Xcode下载失败.使用“购买"页面再试一次. Xcode 9.3. MacOS High Sierra [英] Xcode failed to download. Use the Purchases page to try again. 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...
- 删除〜/Library/Cookies/com.apple.appstore.plist(没有此类文件)
-
使用AppStore调试菜单...(菜单从未与启用该菜单的命令一起出现)
- Remove ~/Library/Cookies/com.apple.appstore.plist (no such file)
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.
删除:
~/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/(措辞):
- 退出Mac App Store
- 打开终端并运行
open $TMPDIR../C/com.apple.appstore/
- 命中返回"和
com.apple.appstore
文件夹将在Mac OS的Finder中打开 - 删除该文件夹的内容
- Quit out of the Mac App Store
- Open Terminal and run
open $TMPDIR../C/com.apple.appstore/
- Hit Return and the
com.apple.appstore
folder will open in the Finder of Mac OS - Delete the contents of this folder
最后:
- 在Finder中导航至
~/Applications
并将Xcode移至垃圾箱 [注意:这对我来说是必需的,但是ymmv] - 重新启动
- 启动App Store.搜索Xcode.重新安装.
- Navigate to
~/Applications
in Finder and move Xcode to the Trash [Note: This step was necessary for me, but ymmv] - Reboot
- Launch App Store. Search for Xcode. Install it fresh.
这篇关于Xcode下载失败.使用“购买"页面再试一次. Xcode 9.3. MacOS High Sierra的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!