开发者

How do you uninstall old custom installs of Xcode?

When I install a beta, I do a custom install into a separate folder to the latest release version. I have several old beta installs.

How do I uninstall the old custom versions of Xcode?

Can I just trash the folder?

Our do I need to use Terminal?

The release notes suggest to use this:

$ sudo /Library/uninstall-devtools --mode=all

But will this just uninstall my original offi开发者_高级运维cial release version 3.2?

Thanks.


From the release notes:

Throughout this document <Xcode> refers to the path in which the Developer Tools Essentials components are installed.

...

To uninstall iPhone SDK and Xcode developer tools on the boot volume along with the <Xcode> directory, from a Terminal window type:

$ sudo <Xcode>/Library/uninstall-devtools --mode=all

So, if you used the default installation path of /Developer, you can uninstall using this command:

$ sudo /Developer/Library/uninstall-devtools --mode=all


If you have multiple Developer folders, you can drag any of them to the trash without damaging the others. Developer folders are completely standalone.

Installing Developer Tools from the download image can also install tools in /usr for Unix-style and makefile-based development. The uninstall-devtools script removes these as well. That, also, should not affect remaining Developer folders.


This is more of a comment than an answer, but I have no rep- so to further clarify Jon-Eric's answer:

...from a Terminal window type:

$ sudo <Xcode>/Library/uninstall-devtools --mode=all

Enter this exactly (from the root of your volume), do not cd into the directory and try it:

$ cd /XCode4/Library
$ sudo uninstall-devtools --mode=all

This will not work. Just a FYI, this caught me up...


For some reason, my system had archived xcode 3 even though I was only using 4, and it placed it in /Developer-old, so running

sudo /Developer-old/Library/uninstall-devtools --mode=all

removed the older xcode that had stuck around.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜