0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

乾淨的移除 Xcode

Last updated at Posted at 2016-06-22

由於太手癢裝了 Xcode 8 beta ,導致開發環境各種崩潰不太能工作

於是決定重新安裝他

先是很天真地把 Xcode 從應用程式資料裡面刪除、垃圾桶也清除,不知道 Xcode 專案為什麼還能開起來 ...

這時候不管他,重新安裝了一次 Xcode ,一樣有問題

於是就去查了怎麼樣乾淨的移除掉 Xcode

移除 app 及各種設定檔和快取

做完這幾步之後,就能乾淨的重新安裝 Xcode ,再來一次了:

這些指令都要在終端機執行,我是用 iTerms 。

因為東西是在 / 下面,並不是在自己的資料目錄中,所以最前面要加上 sudo 。再刪除主程式 Xcode.app 的時候會稍微多花一點時間,等他刪完就好。

sudo rm -rf /Applications/Xcode.app
sudo rm -rf /Library/Preferences/com.apple.dt.Xcode.plist

接著就都是刪除自己目錄下有關 Xcode 的東西

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

這樣子就可以完整乾淨的解除安裝了

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?