Xcode - how to reset glitched Xcode 10.2 installation?

偶尔善良 提交于 2019-12-11 05:18:52

问题


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.

How to fix glitched/stuck Xcode 10.2 installation process?


回答1:


Consider a clean uninstall of everything related to 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/

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

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



来源:https://stackoverflow.com/questions/55560596/xcode-how-to-reset-glitched-xcode-10-2-installation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!