问题描述
我正在更新到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:
- 〜/Library/Developer/Xcode/UserData/CodeSnippets/
- 〜/Library/Developer/Xcode/UserData/FontAndColorThemes/
- 〜/Library/Developer/Xcode/UserData/KeyBindings/
- 〜/Library/Developer/Xcode/Templates/
- 〜/Library/Preferences/com.apple.dt.Xcode.plist
- 〜/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:
- /Applications/Xcode.app
- 〜/Library/Caches/com.apple.dt.Xcode
- 〜/Library/Developer/
- 〜/Library/MobileDevice/
- 〜/Library/Preferences/com.apple.dt.Xcode.plist
- /Library/Preferences/com.apple.dt.Xcode.plist
- /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.bom
- /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.plist
- /System/Library/Receipts/com.apple.pkg.XcodeSystemResources.bom
- /System/Library/Receipts/com.apple.pkg.XcodeSystemResources.plist
- /Applications/Xcode.app
- ~/Library/Caches/com.apple.dt.Xcode
- ~/Library/Developer/
- ~/Library/MobileDevice/
- ~/Library/Preferences/com.apple.dt.Xcode.plist
- /Library/Preferences/com.apple.dt.Xcode.plist
- /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.bom
- /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.plist
- /System/Library/Receipts/com.apple.pkg.XcodeSystemResources.bom
- /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安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!