升级MacOS High Sierra后安装Xcode 9.3遇下载失败问题求助
Hey there, I know how frustrating this Xcode download issue can be—let’s walk through some actionable fixes you can try next, since the steps you’ve already taken didn’t resolve it:
1. Fully Clean App Store Cache & Preferences
Sometimes corrupted cache files are the root cause. Here’s how to clear them:
- First, completely quit the App Store (use Cmd+Q, or open Activity Monitor to force quit both "App Store" and "storeagent" processes)
- Open Finder, press
Cmd+Shift+Gand paste these paths one by one, deleting all contents inside each folder/file:~/Library/Caches/com.apple.appstore~/Library/Preferences/com.apple.appstore.plist~/Library/Preferences/com.apple.storeagent.plist
- Restart your Mac, then launch the App Store again to retry the download.
2. Reset App Store via Terminal
Terminal commands can help reset App Store services that might be stuck:
Open Terminal and run these commands one at a time (press Enter after each):
killall -9 storeagent killall -9 appstore defaults delete com.apple.appstore defaults delete com.apple.storeagent
After running these, restart your Mac and check if the download works.
3. Repair Disk Permissions & Disk Errors
Disk issues can interfere with App Store downloads too:
- Open Disk Utility from
/Applications/Utilities - Select your startup disk (usually named "Macintosh HD")
- Click the First Aid button, then click "Run" to start the repair
- Once the repair finishes, restart your Mac and try downloading Xcode again.
4. Remove All Xcode Residual Files
Incomplete uninstallation might leave behind conflicting files:
- Make sure Xcode is gone from
/Applications - Open Finder, press
Cmd+Shift+Gand delete these folders if they exist:~/Library/Developer(user-specific Xcode data)/Library/Developer(system-wide Xcode data)
- Empty your Trash, restart your Mac, and attempt the download again.
5. Alternative: Download Xcode Directly
If the App Store still fails, you can log into your Apple Developer account and download the Xcode 9.3 installation package directly. Manually installing it often bypasses App Store-related glitches.
内容的提问来源于stack exchange,提问作者Kuldeep

