先删除xcode,再重新下载xcode,搞定!
彻底删除Xcode相关的东西
sudo /Developer/Library/uninstall-devtools –mode=all
然后再删除Developer文件夹
sudo rm -rf /Applications/Xcode.app
sudo rm -rf /Library/Preferences/com.apple.dt.Xcode.plist
然后删除自己目录下的:
rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist
rm -rf ~/Library/Caches/com.apple.dt.Xcode
rm -rf ~/Library/Application\ Support/Xcode
以及和开发者相关的:
rm -rf ~/Library/Developer/Xcode
rm -rf ~/Library/Developer/CoreSimulator
rm -rf ~/Library/Developer/XCPGDevices
作者:小刘_假装是个程序员
网友评论