如何卸载旧版本的 Xcode
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10041871/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to uninstall older version of Xcode
提问by Rickie
I have Xcode 4.0.2 and 3.2.5 both installed on my macbook. How do I uninstall the older version without uninstalling the newer version?
我的 macbook 上都安装了 Xcode 4.0.2 和 3.2.5。如何在不卸载新版本的情况下卸载旧版本?
回答by Demz
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”的安装,因为它位于完全不同的文件夹中。
回答by Demz
- Your XCode 4.xis installed in your
/Applications/ folder
- The old XCode 3.xis installed in
/Developer/
and can be independently uninstalled by running the following command :
- 你的XCode 4.x安装在你的
/Applications/ folder
- 旧的XCode 3.x已安装
/Developer/
并可以通过运行以下命令独立卸载:
sudo /Developer/Library/uninstall-devtools –mode=all
须藤/Developer/Library/uninstall-devtools –mode=all
It is a nice mv from the XCode Apple Developers Team :)
这是来自 XCode Apple 开发团队的不错的 mv :)