ios 如何安全地卸载旧的 Xcode 测试版

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7129258/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 21:11:43  来源:igfitidea点击:

How to uninstall old Xcode beta safely

iosxcode

提问by Mason

I want to uninstall Xcode 5 beta 5 before installing beta 6 (I know it's under NDA, but as long as I don't mention anything about the software itself, I think we're good). What's the best/safest way of doing that, so I don't jeopardize any functionality? I'm just afraid of arbitrarily deleting things from the developer folder.

我想在安装 beta 6 之前卸载 Xcode 5 beta 5(我知道它在 NDA 之下,但只要我不提及软件本身的任何内容,我认为我们很好)。这样做的最佳/最安全方法是什么,所以我不会危及任何功能?我只是害怕从开发者文件夹中任意删除东西。

采纳答案by Paul.s

Go into your developer folder and in the About Xcode.pdfit will have instructions

进入你的开发者文件夹,About Xcode.pdf里面会有说明

/Developer/Developer/About\ Xcode.pdf

It is near the end of the pdf but you can search for uninstalland it will give you some options

它接近pdf的结尾,但您可以搜索uninstall,它会给您一些选择

You will most likely want

你很可能想要

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

But I recommend you read the uninstall section so you can see the options available.

但我建议您阅读卸载部分,以便查看可用的选项。

回答by Luc

The above answer is correct for older versions of Xcode that install in the /Developer/folder, but newer versions of Xcode Beta can be uninstalled by simply dragging the /Applications/Xcode-beta.appapplication into the Trash.

对于安装在/Developer/文件夹中的旧版本 Xcode,上述答案是正确的,但只需将/Applications/Xcode-beta.app应用程序拖到废纸篓中即可卸载新版本的 Xcode Beta 。

回答by Nik

Just close non-beta Xcode first.

只需先关闭非测试版 Xcode。

回答by Lal Krishna

You can do the following to fix (remove xcode/xcode beta).

您可以执行以下操作来修复(删除 xcode/xcode beta)。

The item xcode can't be moved to the Trash because some of its extensions are in use.

项目 xcode 无法移动到垃圾箱,因为它的一些扩展正在使用中。

  1. Control-click on Xcode
  2. Select show package contents
  3. Open folder
  4. Delete pluginsfolder
  5. Open finder window
  6. Navigate to folder containing Xcode app
  7. Move to trash
  1. 按住 Control 单击 Xcode
  2. 选择 show package contents
  3. 打开文件夹
  4. 删除plugins文件夹
  5. 打开查找窗口
  6. 导航到包含 Xcode 应用程序的文件夹
  7. 移到废纸篓

回答by GiuMex

The answer is correct but just for older versions of Xcode. With newer versions:

答案是正确的,但仅适用于旧版本的 Xcode。使用较新版本:

  1. Just trash the /Applications/Xcode-beta.appapplication
  1. 只是垃圾/Applications/Xcode-beta.app应用程序

and, if you're replacing it with a new stable version(new Xcode.app), remember to:

并且,如果您要用新的稳定版本(新的 Xcode.app)替换它,请记住:

  1. run sudo xcode-select --switch /Applications/Xcode.appto specify the new app that you wish to use for command line developer tools.
  1. 运行sudo xcode-select --switch /Applications/Xcode.app以指定您希望用于命令行开发人员工具的新应用程序。

If "the app can't be moved to the Trash because some of its extensions are in use", just restart the Mac before trying again.

如果“该应用程序无法移至垃圾箱,因为其某些扩展正在使用中”,只需重新启动 Mac,然后再试一次。