如何删除以前版本的 Xcode
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2683858/
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 remove previous versions of Xcode
提问by Ed Marty
When the 3.2 beta of the iPhone OS first came out, Xcode for 3.2 had to be installed side-by-side with the version for 3.1.2. I installed the new version (3.2) in /Developer and moved 3.1.2 to /Xcode3.1.2. Now I want to get rid of the old version and just use the new one since we can do that now.
当 iPhone OS 的 3.2 beta 首次出现时,3.2 的 Xcode 必须与 3.1.2 的版本并排安装。我在 /Developer 中安装了新版本 (3.2) 并将 3.1.2 移动到 /Xcode3.1.2。现在我想摆脱旧版本并使用新版本,因为我们现在可以这样做。
I ran the uninstall tool at /Xcode3.1.2/Library/uninstall-devtools and uninstall-developer-folder, but the directory still exists and has lots of stuff still in it, adding up to about 5 GB. At this point, am I safe just deleting the folder if I want to totally get rid of it and still use the /Developer folder?
我在/Xcode3.1.2/Library/uninstall-devtools 和uninstall-developer-folder 运行卸载工具,但该目录仍然存在并且里面还有很多东西,加起来大约有5 GB。在这一点上,如果我想完全摆脱它并仍然使用 /Developer 文件夹,我是否可以安全地删除该文件夹?
(At about 8 GB, it's got lots more in it, but I'm not sure if that's just because it's larger or because the old version was 8 GB before I ran the uninstall tool)?
(大约 8 GB,里面还有很多,但我不确定这是否只是因为它更大,还是因为在我运行卸载工具之前旧版本是 8 GB)?
回答by dodgio
After running (DevToolsFolder)/Library/uninstall-devtools, there always seems to be something left over. I just delete the folder at that point and move forward.
运行 (DevToolsFolder)/Library/uninstall-devtools 后,似乎总有一些东西遗留下来。我只是在那时删除了文件夹并继续前进。
However, in your situation -- moving forward from a beta, I always:
但是,在您的情况下 - 从测试版开始,我总是:
- run uninstall-devtools on everydeveloper tools folder
- delete each developer tools folder
- reinstall the final/production version of developer tools
- 在每个开发者工具文件夹上运行 uninstall-devtools
- 删除每个开发者工具文件夹
- 重新安装开发者工具的最终/生产版本
This isn't supposed to be necessary, but beta software installs are not always well behaved, and this process does a thorough cleanup.
这应该不是必需的,但测试版软件安装并不总是表现良好,并且此过程会进行彻底的清理。
回答by Josh Knauer
Just to be safe, did you run:
为了安全起见,您是否运行了:
sudo /Developer/Library/uninstall-devtools --mode=all
回答by Macmade
If I remember, the /Developer folder does not exist with a fresh OSX install.
It's created when the DevTools are installed.
如果我记得,/Developer 文件夹不存在于全新的 OSX 安装中。
它是在安装 DevTools 时创建的。
So it should be safe to delete that folder, and re-install the DevTools.
因此删除该文件夹并重新安装 DevTools 应该是安全的。