简体   繁体   English

如何卸载旧版本的 Xcode

[英]How to uninstall older version of Xcode

I have Xcode 4.0.2 and 3.2.5 both installed on my macbook.我的 macbook 上安装了 Xcode 4.0.2 和 3.2.5。 How do I uninstall the older version without uninstalling the newer version?如何在不卸载新版本的情况下卸载旧版本?

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

where <Xcode> is the path to the Developer folder (the one with 'Xcode 3.2.5' in it) This won't affect the 'Xcode 4.0.2' installation since it's in a completely different folder.其中<Xcode>是 Developer 文件夹的路径(其中包含“Xcode 3.2.5”的文件夹)这不会影响“Xcode 4.0.2”的安装,因为它位于一个完全不同的文件夹中。

  • Your XCode 4.x is installed in your /Applications/ folder您的XCode 4.x安装在您的/Applications/ folder
  • The old XCode 3.x is installed in /Developer/ and can be independently uninstalled by running the following command:旧的XCode 3.x安装在/Developer/下,可以通过运行以下命令独立卸载:

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

It is a nice mv from the XCode Apple Developers Team:)这是来自 XCode Apple Developers Team 的精彩 mv :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM