How to Uninstall Xcode From Mac in 2021 – DZone Web Dev

Xcode is one of the best integrate Development Environments ( IDEs ) for compose, testing, and deploying Apple apps. Creating applications for Mac and io devices is a distribute easier with Xcode. Despite being a superintendent app exploitation creature with several benefits, Xcode has one huge downside : it ’ s a data hog .
The ( latest translation of the ) app is about 11GB on the App Store. During custom, Xcode besides creates a batch of irregular hoard files that consume an insane sum of memory outer space. In the long run, these temp files may cause the app ( and your Mac ) to freeze or malfunction during custom .

Why and When Should You Uninstall Xcode?

sometimes, the best way to fix the issues and prevent Xcode from filling up your hard drive is to uninstall the app and reinstall it from scratch. So when some features of Xcode systematically malfunction time and time again, you might want to wholly remove the app from your Mac .
Say, for example, XCode fails to compile your app or install some full of life components/simulators. Uninstalling the app might be the adjacent best thing if all troubleshooting solutions prove abortive.

You may besides need to uninstall Xcode if you ’ re selling off your Mac or gifting it toddler person who isn ’ t a developer .

How to Uninstall XCode From Your Mac

Before you proceed to uninstall Xcode, we recommend that you find where the app ‘s files and components are located on your Mac. That ’ ll give you an theme of where to look when you need to delete Xcode ’ s leftover files after uninstalling the app .
You can use the mdfind command in Terminal to locate all the files associated with the Xcode app. here ’ s how to get it done .
1. Go to Finder > Applications > Utilities  and double-click Terminal.
2. character or paste the command below into the Terminal console and press Return  on your keyboard .
mdfind -name "xcode"
14357741 1
3. Take note of the directories and file paths in the results .
You can run the command again after uninstalling Xcode to find any leftover charge. Mind you, you should n’t delete all directories displayed in the results. Files and folders normally associated with Xcode are listed below :

  1. /Applications/Xcode.app
  2. ~/Library/MobileDevice
  3. ~/Library/Developer
  4. /System/Library/Receipts/com.apple.pkg.XcodeSystemResources.plist
  5. /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.plist
  6. /System/Library/Receipts/com.apple.pkg.XcodeSystemResources.bom
  7. /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.bom
  8. ~/Library/Caches/com.apple.dt.Xcode
  9. /Library/Preferences/com.apple.dt.Xcode.plist
  10. ~/Library/Preferences/com.apple.dt.Xcode.plist

This list is by no means definitive. You may find extra Xcode files in directories not listed above on your Mac. That ’ mho why you should use the mdfind instruction to locate the files before uninstalling Xcode .
When you uninstall Xcode from your Mac, a bunch together of these files will be deleted. however, some files may inactive be lurking behind. Follow the steps below to uninstall Xcode and completely remove all its associated data—leftover files and components .

Step 1: Delete the Xcode App

The first footstep to uninstalling Xcode from your Mac ( and deleting its residual files ) is to move the app itself to the macOS Bin. Launch Finder and click Applications  on the veracious sidebar. Right-click on the Xcode picture and blue-ribbon Move to Bin on the context menu .
14357743 2
That will immediately uninstall Xcode from your Mac. now, proceed to remove its residual files .

Step 2: Delete Xcode’s Residual Files

The files of newer Xcode versions are normally consolidated in the ~/Library/Developer/ folder. You may besides find confirm files in the ~/Library/Caches/ booklet. If your Mac doesn ’ t edit these files/folders after uninstalling Xcode, you should .
To do so, launching Terminal ( go to Finder > Applications > Utilities > Terminal ) and paste the follow command .
sudo rm -rf ~/Library/Developer/

14357744 3

figure your Mac ’ south password and compress Return. This command will remove Xcode ’ s leftover files in the Developer booklet. An alternative route is to launch the Go to Folder  windows ( Shift + Command + G ), spread ~/Library/ into the dialogue box, and chink Go.   14357745 4
Right-click the Developer folder and choice Move to Bin. 14357746 5
Execute the future command to delete other accompaniment files in the Library cache folder .
sudo rm -rf ~/Library/Caches/com.apple.dt.Xcode 14357747 6 Paste the command above and press Return. The folder will be deleted after entering your Mac ’ s password .
Proceed to empty your Mac ’ s Bin after uninstalling Xcode and deleting the residual files. You can besides run the mdfind command in Terminal to confirm that the files have indeed been deleted.

If you find that some Xcode files are still house physician on your Mac ’ s hard drive, you credibly have an old version of the Xcode app. To delete the bequest files of bequest Xcode versions, launch Terminal and paste the command below into the console .
sudo /Developer/Library/uninstall-devtools --mode=all 14357749 7 Press Return, insert your Mac ’ sulfur password, and press Return  again .
Files generated by Xcode and its components run into tens of gigabytes. This can take a toll on your Mac ’ sulfur memory and operation, specially if you ’ re running out of available outer space. Follow the steps in this guide to wholly remove all Xcode ’ s files from your Mac .

generator : https://thefartiste.com
Category : Tech

About admin

I am the owner of the website thefartiste.com, my purpose is to bring all the most useful information to users.

Check Also

articlewriting1

Manage participants in a zoom meeting webinar

Call the people who attend the meet as follows Alternate host host Who scheduled the …

Leave a Reply

Your email address will not be published.