Xcode-如何重置故障Xcode 10.2安装? [英] Xcode - how to reset glitched Xcode 10.2 installation?

查看:339
本文介绍了Xcode-如何重置故障Xcode 10.2安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在更新到Xcode 10.2,并且安装故障在大约77%处卡住了.像这样坐了三十多分钟.重新启动没有帮助-安装再次卡住.

I'm updating to Xcode 10.2, and have a glitched installation stuck at about 77%. It has been sitting like that for over 30 minutes. Restart did not help - the installation gets stuck again.

如何修复出现故障/卡住的Xcode 10.2安装过程?

推荐答案

考虑彻底卸载与Xcode相关的所有内容.

Consider a clean uninstall of everything related to Xcode.

建议首先保存标注的文件夹(以"/"结尾)或文件,因为它们包含您对Xcode的自定义设置:

Recommend first saving the noted folders (ending in "/") or files as they contain the customizations you have for Xcode:

  1. 〜/Library/Developer/Xcode/UserData/CodeSnippets/
  2. 〜/Library/Developer/Xcode/UserData/FontAndColorThemes/
  3. 〜/Library/Developer/Xcode/UserData/KeyBindings/
  4. 〜/Library/Developer/Xcode/Templates/
  5. 〜/Library/Preferences/com.apple.dt.Xcode.plist
  6. 〜/Library/MobileDevice/Provisioning Profiles/

然后按照说明完全删除所有Xcode 10扩展,删除以下文件夹(以"/"结尾)或文件:

And then completely removing all of the Xcode 10 sprawl, delete the following folder (ending in "/") or file as noted:

  1. /Applications/Xcode.app
  2. 〜/Library/Caches/com.apple.dt.Xcode
  3. 〜/Library/Developer/
  4. 〜/Library/MobileDevice/
  5. 〜/Library/Preferences/com.apple.dt.Xcode.plist
  6. /Library/Preferences/com.apple.dt.Xcode.plist
  7. /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.bom
  8. /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.plist
  9. /System/Library/Receipts/com.apple.pkg.XcodeSystemResources.bom
  10. /System/Library/Receipts/com.apple.pkg.XcodeSystemResources.plist
  1. /Applications/Xcode.app
  2. ~/Library/Caches/com.apple.dt.Xcode
  3. ~/Library/Developer/
  4. ~/Library/MobileDevice/
  5. ~/Library/Preferences/com.apple.dt.Xcode.plist
  6. /Library/Preferences/com.apple.dt.Xcode.plist
  7. /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.bom
  8. /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.plist
  9. /System/Library/Receipts/com.apple.pkg.XcodeSystemResources.bom
  10. /System/Library/Receipts/com.apple.pkg.XcodeSystemResources.plist

然后再次安装Xcode.如果成功,请手动将您的修改复制回去.始终保持对mod的手动备份...以防万一. ;-)

Then installing Xcode again. If successful, hand-copy your modifications back. Always good to maintain a manual backup of the mods... just in case. ;-)

这篇关于Xcode-如何重置故障Xcode 10.2安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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