问题
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:
- ~/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/
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
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