xcode reset 删除重新安装


  • Type "rm -rf ~/Library/Application\ Support/Xcode" and press "Enter." This removes the

  • 删除xcode配置

rm -rf $HOME/Library/Application Support/Developer/Shared/Xcode
rm -rf $HOME/Library/Preferences/com.apple.dt.Xcode.*
rm -rf $HOME/Library/Saved\ Application\ State/com.apple.dt.Xcode.savedState
rm -rf $HOME/Library/Developer/Xcode
 ls | grep -i xcode’

Could not find Developer Disk Image:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

  1. 第一步,直接到Applications中删除Xcode。如果你还有‘Install Xcode.app'也一并删除。
  2. 第二步,删除/Library/Developer和/Library/Xcode 两个目录。
  3. 第三步,删除simulator路径 /Users/INSERT_YOUR_USER_HERE/Library/Application Support/iPhone Simulator/
  4. 第四步,删除/Users/INSERT_YOUR_USER_HERE/Library/Developer/
  5. 然后这步很重要了,Xcode的一些配置其实要删除这几个目录。
    ~/Library/Saved Application State/
    /Users/INSERT_YOUR_USER_HERE/Library/Preferences/
    这两个目录中带有Xcode的文件通通删掉,可以用一个命令来查询
posted @ 2018-07-20 20:27  buoge  阅读(447)  评论(0编辑  收藏  举报