Jump to content

Recommended Posts

Posted

<div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2012/02/uninstall-xcode1.jpg" alt="Uninstall Xcode" title="uninstall-xcode" width="350" height="312" class="aligncenter size-full wp-image-27503" /></p>

<p>Xcode is Apple’s developer suite for iOS and Mac OS X, it’s necessary if you intend to be write apps for either OS and installing it includes a number of other useful utilities other than the main IDE itself. The additional aspects include things like the Interface Builder, iPhone Simulator, Quartz Composer, Dashcode, gcc, dtrace, perl, python, ruby, and much more that has use beyond core iOS and OS X development, adding valuable utilities to tweakers and administrators toolkits.</p>

<p>Installing Xcode is just a matter of downloading it from the Mac App Store, but what if you want to remove Xcode? Doing so is not the same as <a href="http://osxdaily.com/2011/06/20/uninstall-mac-applications/">uninstalling general Mac apps</a> or even <a href="http://osxdaily.com/2012/02/05/delete-safari-mail-facetime-other-default-mac-os-x-apps/">ditching the default apps</a> because Xcode has a much larger footprint, so to uninstall Xcode you’ll need to venture into the command line.</p>

<p><strong>Update:</strong> Our readers pointed out that Xcode 4.3 simplifies this process considerably by bundling Xcode into a single application. Therefore, this guide is most relevant to older versions. XCode 4.3 and later should be able to uninstall like any other Mac app. Thanks Mike & Peter!</p>

<h2 style="font-size:1.3em;">Completely Uninstall Xcode</h2>

<p>This will remove everything pertaining to Xcode from a Mac:</p>

<ul>

<li>Launch the Terminal, found in /Applications/Utilities/ and type the following:</li>

<p><code>sudo /Developer/Library/uninstall-devtools --mode=all</code></p>

<li>Confirm the admin password (required for sudo) and let the scripts run</li>

</ul>

<p><strong>Don’t Forget to Delete the Install Xcode Application</strong>

If you uninstall Xcode, the original Install Xcode application is probably still sitting in your /Applications/ folder as downloaded from the Mac App Store, don’t forget to delete this too otherwise you are wasting 1.8GB of disk space.</p>

<h2 style="font-size:1.3em;">Why Uninstall Xcode?</h2>

<p>If you don’t use Xcode or it’s accompanying utilities it’s a good idea to uninstall the suite. Why? The simplest reason is because Xcode takes up a lot of disk space, generally a minimum of 7GB of disk space is consumed by the installation, and the installer application alone is another 1.8GB, that’s a lot of storage capacity taken up by something that is potentially getting no use.</p>

<p><img src="http://osxdaily.com/wp-content/uploads/2012/02/uninstall-xcode.jpg" alt="Uninstall Xcode" title="uninstall xcode" width="619" height="191" class="aligncenter size-full wp-image-27501" /></p>

<p><span id="more-27467"></span>

Now that we’ve covered the basic process of uninstalling everything to do with Xcode and why some people would benefit from doing so, we’ll dive into some more specific information and some other uninstall options that could be useful to some users.</p>

<p>First, the the above uninstall command with -mode=all actually just runs three separate scripts making the uninstallation process easier, for those who are curious those separate scripts are:</p>

<p><code> /Library/Developer/Shared/uninstall-devtools

/Library/Developer/4.1/uninstall-devtools

/Developer/Library/uninstall-developer-folder</code></p>

<p>These do not need to be run independently, although you could chose to do so if you wanted to, more on that below.</p>

<p>If you want to selectively uninstall parts of Xcode rather than everything, use the commands below. These are not necessary if you run the above –mode=all command.</p>

<h2 style="font-size:1.1em;">Uninstall Xcode’s Unix Development Toolkit</h2>

<p>If you only want to remove the command line side of things, you can do that with this command:</p>

<p><code>sudo /Developer/Library/uninstall-devtools --mode=unixdev</code></p>

<p>This is actually linked to the aforementioned “/Library/Developer/Shared/uninstall-devtools” script. Personally, I think the unix toolkit is one of the most useful aspects of installing Xcode so I’m not sure why you’d want to do this, but it’s nice to know you can.</p>

<h2 style="font-size:1.1em;">Uninstall the Xcode Developer Folder and Contents Only</h2>

<p>This will keep other aspects of Xcode intact but will remove everything within the /Developer directory:</p>

<p><code>sudo /Developer/Library/uninstall-devtools --mode=xcodedir</code></p>

<p>This command is basically a shortcut to the previously mentioned “/Developer/Library/uninstall-developer-folder” script. If you want to ditch the /Developer directory, run this command rather than manually deleting it through the Finder.</p>

<h2 style="font-size:1.1em;">Uninstall Xcode System Support</h2>

<p>Selectively uninstall Xcode’s system support only (not recommended):</p>

<p><code>sudo /Developer/Library/uninstall-devtools --mode=systemsupport</code></p>

<p>This command just runs the following scripts: “/Library/Developer/Shared/uninstall-devtools” and “/Library/Developer/4.1/uninstall-devtools”</p>

<p>That just about wraps it up. You may be able to accomplish some of these tasks with an <a href="http://osxdaily.com/2012/02/15/delete-applications-mac-os-x-appcleaner/">removal utility like AppCleaner</a> as well, but for best results it’s a good idea to stick with the solution bundled with Xcode itself.</p>

</div>

<p><a href="http://feedads.g.doubleclick.net/~a/MQIRt1JEkdal08-kmAHwQ1-Eo1k/0/da"><img src="http://feedads.g.doubleclick.net/~a/MQIRt1JEkdal08-kmAHwQ1-Eo1k/0/di" border="0" ismap="true"></img></a><br/>

<a href="http://feedads.g.doubleclick.net/~a/MQIRt1JEkdal08-kmAHwQ1-Eo1k/1/da"><img src="http://feedads.g.doubleclick.net/~a/MQIRt1JEkdal08-kmAHwQ1-Eo1k/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">

<a href="http://feeds.feedburner.com/~ff/osxdaily?a=HB5aEv1mG00:xJXPwaLHWD8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=HB5aEv1mG00:xJXPwaLHWD8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=HB5aEv1mG00:xJXPwaLHWD8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=HB5aEv1mG00:xJXPwaLHWD8:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=HB5aEv1mG00:xJXPwaLHWD8:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=HB5aEv1mG00:xJXPwaLHWD8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=HB5aEv1mG00:xJXPwaLHWD8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a>

</div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/HB5aEv1mG00" height="1" width="1"/>

 

View the full article

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic


×
×
  • Create New...