如何幹淨的卸載Xcode和緩存

1.根目錄下的必需要用管理員權限:

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

2.而後刪除本身目錄下的:

rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist rm -rf ~/Library/Caches/com.apple.dt.Xcode rm -rf ~/Library/Application\ Support/Xcode 

3.以及和開發者相關的:

rm -rf ~/Library/Developer/Xcode rm -rf ~/Library/Developer/CoreSimulator rm -rf ~/Library/Developer/XCPGDevices 

xcode緩存目錄

~/Library/Developer/Xcode/DerivedData
相關文章
相關標籤/搜索