从 Lion 10.7.2 卸载 Xcode 3.2.6
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8986592/
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
Uninstalling Xcode 3.2.6 from Lion 10.7.2
提问by Hasanavi
I've installed xCode 3.2.6 on my Lion 10.7.2.
我已经在 Lion 10.7.2 上安装了 xCode 3.2.6。
After install I can't find the xCode icon to launch it. I've got to know 3.2.6 doesn't support Lion.
安装后我找不到 xCode 图标来启动它。我必须知道 3.2.6 不支持 Lion。
However, the worst thing happen when I tried to uninstall it with
然而,最糟糕的事情发生在我试图卸载它时
sudo /Developer/Library/uninstall-devtools --mode=all
Unfortunately uninstall-devtools wasn't there. I'm stuck middle of nowhere.
不幸的是,uninstall-devtools 不存在。我被困在偏僻的地方。
Does anybody have any idea how to uninstall it and install xCode 4.2?
有人知道如何卸载它并安装 xCode 4.2 吗?
采纳答案by zaph
If /Developer/Library/uninstall-devtools does not exist skip that step.
如果 /Developer/Library/uninstall-devtools 不存在,请跳过该步骤。
Delete the /Develop folder if it exists.
删除 /Develop 文件夹(如果存在)。
Install xCode 4.2. Th eXcode icon will be in /Developer/Applications
安装 xCode 4.2。eXcode 图标将在 /Developer/Applications 中
The Xcode latest beta is even easier to install, get it if you have access.
Xcode 最新测试版更易于安装,如果您可以访问,请获取它。
回答by Nimit Parekh
回答by Hollis Waite
If you install Xcode 3 from the GUI on Lion, you'll end up with a bunch of random tools but not the actual Xcode Toolset. In that case, you can use the uninstall-dev-tools located in /Library/Developer/Shared (rather than /Developer/Library).
如果您从 Lion 上的 GUI 安装 Xcode 3,您最终会得到一堆随机工具,而不是实际的 Xcode 工具集。在这种情况下,您可以使用位于 /Library/Developer/Shared(而不是 /Developer/Library)中的卸载开发工具。
You can fully install XCode 3 on Lion via the Terminal with the following commands:
您可以使用以下命令通过终端在 Lion 上完全安装 XCode 3:
export COMMAND_LINE_INSTALL=1
open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"
回答by andistuder
careful: if you work in ruby, you better stay with xCode 4.1
小心:如果你在 ruby 中工作,你最好继续使用 xCode 4.1