简体   繁体   English

在Mountain Lion上卸载Xcode 3.2的问题

[英]Issue with uninstalling Xcode 3.2 on Mountain Lion

I just upgraded to Mountain Lion (from Snow Leopard) so as to take advantage of Xcode 4. 我刚刚从Snow Leopard升级到Mountain Lion,以便利用Xcode 4。

Before installing Xcode 4, I would like to remove Xcode 3 (not required, but want to clean up before moving on). 在安装Xcode 4之前,我想删除Xcode 3(不是必需的,但想在继续之前进行清理)。

The standard method of removing Xcode 3 is: 删除Xcode 3的标准方法是:

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

However, when I issue this command, even from within the /Library folder, the only thing that happens is I get a "command not found" after entering my password. 但是,当我发出此命令时,即使从/Library文件夹中发出,唯一发生的事情是输入密码后出现"command not found"

I can see uninstall-devtools in Finder, so I know it's there. 我可以在Finder中看到uninstall-devtools ,所以我知道它在那里。 I just can't execute it for some reason. 由于某种原因,我无法执行它。 I've tried every possible way of running the uninstall tools. 我尝试了运行卸载工具的所有可能方式。

Assistance is greatly appreciated. 非常感谢您的协助。 Thanks. 谢谢。

If the file really is there, type sudo in the terminal window (with a trailing space), drag and drop the uninstall-devtools file on the window, then append --mode=all . 如果该文件确实存在,请在终端窗口中键入sudo (带有尾随空格),然后将uninstall-devtools文件拖放到该窗口上,然后附加--mode=all That should clear any chance you have to make a typo or any other mistake. 这应该清除您必须输入任何错误或任何其他错误的机会。

Similarly to information I found in another SO article, my laptop's old XCode 3.2 didn't even have the uninstall-tools utility. 与我在另一篇SO文章中找到的信息类似,笔记本电脑的旧XCode 3.2甚至没有uninstall-tools实用程序。

So it worked fine for me to simply delete the XCode.app folder. 因此,对我来说,只需删除XCode.app文件夹就可以了。

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

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