xcode reset 刪除從新安裝


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

  • 刪除xcode配置github

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/DeviceSupportxcode

  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的文件統統刪掉,能夠用一個命令來查詢
相關文章
相關標籤/搜索