Created
October 24, 2020 11:41
-
-
Save roalcantara/bb45ffeb38fe2e59f625b86e28f6db6b to your computer and use it in GitHub Desktop.
xcode-uninstall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
killall Xcode | |
xcrun -k | |
xcodebuild -alltargets clean | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" | |
rm -rf /Applications/Xcode.app | |
rm -rf ~/Library/Caches/com.apple.dt.Xcode | |
rm -rf ~/Library/Developer | |
rm -rf ~/Library/MobileDevice | |
rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist | |
rm -rf ~/Library/Preferences/com.apple.dt.xcodebuild.plist | |
sudo rm -rf /Library/Preferences/com.apple.dt.Xcode.plist | |
sudo rm -rf /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.bom | |
sudo rm -rf /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.plist | |
sudo rm -rf /System/Library/Receipts/com.apple.pkg.XcodeSystemResources.bom | |
sudo rm -rf /System/Library/Receipts/com.apple.pkg.XcodeSystemResources.plist | |
sudo rm -rf /private/var/db/receipts/com.apple.pkg.Xcode.bom | |
# https://medium.com/@onexlab.io/uninstall-xcode-from-macos-eca1b69dc836 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment