Xcode 6 和 Xcode 5 可以在同一台电脑上共存吗?

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

Can Xcode 6 and Xcode 5 coexist on the same computer?

xcodexcode5xcode6

提问by mredig

I currently have and use Xcode 5, and while I'd like to experiment with Xcode 6, I don't want to use it for production. Can I have both of them installed on the same computer without them conflicting with each other? I couldn't find anything on this on the download page for Xcode 6.

我目前拥有并使用 Xcode 5,虽然我想尝试使用 Xcode 6,但我不想将它用于生产。我可以将它们安装在同一台计算机上而不相互冲突吗?我在 Xcode 6 的下载页面上找不到任何关于此的内容。

采纳答案by Ethan Holshouser

I have them installed side by side right now and I have not encountered any problems with this arrangement. While I obviously haven't had Xcode 6 for very long, I have done the same thing with several previous Xcode beta releases as well and I have no reason to believe this release would be different.

我现在并排安装了它们,并且我没有遇到这种安排的任何问题。虽然我显然没有很长时间使用 Xcode 6,但我对之前的几个 Xcode 测试版也做了同样的事情,我没有理由相信这个版本会有所不同。

EDIT: You can use xcode-selectto switch between the different versions of the command line tools. From the man page:

编辑:您可以用来xcode-select在不同版本的命令行工具之间切换。从手册页

When multiple Xcode applications are installed on a system (e.g. /Applications/Xcode.app, containing the latest Xcode, and /Applications/Xcode-DP.app containing a developer preview) use xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools.

当系统上安装了多个 Xcode 应用程序(例如,包含最新 Xcode 的 /Applications/Xcode.app 和包含开发人员预览的 /Applications/Xcode-DP.app)时,请使用 xcode-select --switch path/to/Xcode。 app 来指定您希望用于命令行开发人员工具的 Xcode。

回答by onmyway133

The answer is YES

答案是肯定的

Where to download Xcode 6 beta

在哪里下载 Xcode 6 测试版

  1. Go to https://developer.apple.com/xcode/downloads/
  2. Select View on the iOS Dev Center
  3. Sign in with your Apple Developer ID
  4. In the top left, select iOS 8 Beta
  5. Scroll down and search for Xcode 6 beta
  1. 转到https://developer.apple.com/xcode/downloads/
  2. 在 iOS Dev Center 上选择View
  3. 使用您的 Apple Developer ID 登录
  4. 在左上角,选择 iOS 8 Beta
  5. 向下滚动并搜索Xcode 6 beta

The requirement for Xcode 6 is OS X Mavericks 10.9.3

Xcode 6 的要求是 OS X Mavericks 10.9.3

It will install into /Applications folder with the name Xcode6-Beta, so it won't hurt your current Xcode

它将安装到名为Xcode6-Beta 的/Applications 文件夹中,因此它不会损害您当前的 Xcode

回答by xZenon

As said before - XCode 5 and 6 can coexist together. Just want to add that you can switch between the different versions of the command line tools using the GUI also: open XCode-> Preferences-> Locations.

如前所述 - XCode 5 和 6 可以共存。只想补充一点,您还可以使用 GUI 在不同版本的命令行工具之间切换:打开XCode-> Preferences-> Locations

回答by Kornel

They can both coexist without any problems. You can set version that command line tools use with:

它们可以共存,没有任何问题。您可以设置命令行工具使用的版本:

sudo xcode-select -s /Applications/Xcode6-Beta.app

Xcode 6 works on 10.9 too.

Xcode 6 也适用于 10.9。

回答by Ray Richards

My Xcode 5 icon in the dock turned into a big question mark, as it appears to have been deleted with the install of Yosemite. Further, If I try to re-download it from the app store, it says my version of OS X is 'too new' and refuses to allow me to download. Next I downloaded Xcode 5.1.1 from the developer downloads, which finally allowed me to install it. They are both happily coexisting now on Yosemite.

我在 Dock 中的 Xcode 5 图标变成了一个大问号,因为它似乎已随着 Yosemite 的安装而被删除。此外,如果我尝试从应用商店重新下载它,它会说我的 OS X 版本“太新”并且拒绝让我下载。接下来,我从开发人员下载中下载了 Xcode 5.1.1,这最终允许我安装它。他们现在在优胜美地愉快地共存。

回答by gurehbgui

I'm running OS X 10.9.3 and have XCode 5.1.1 installed. Today I installed the XCode 6 beta and it went without problems. Now I have a XCodeand a Xcode6-Betaapp.

我正在运行 OS X 10.9.3 并安装了 XCode 5.1.1。今天我安装了 XCode 6 beta,它没有问题。现在我有一个XCode和一个Xcode6-Beta应用程序。

回答by Jayprakash Dubey

Yes, you can have two Xcode on system but it is advised to keep latest one. While installing Xcode 6 there will be prompt 'Xcode already exists. Replace/Keep it ?'

是的,您可以在系统上安装两个 Xcode,但建议保留最新的一个。在安装 Xcode 6 时,会提示“Xcode 已经存在。更换/保留它?'

Go with create a new copy of Xcode.This will install Xcode 6 on your system. The newly installed Xcode will be renamed as 'Xcode 6'. I'm using Xcode 5.1 and Xcode 6 on my system and there seems to be no issue.

创建一个新的 Xcode 副本。这将在您的系统上安装 Xcode 6。新安装的 Xcode 将被重命名为'Xcode 6'。我在我的系统上使用 Xcode 5.1 和 Xcode 6,似乎没有问题。

Screenshot for issue

问题截图

回答by asheesh Verma

yes you can have two separate version on same mac

是的,您可以在同一台 Mac 上拥有两个单独的版本

  1. Xcode 6 on the Mac App Store will replace the existing Xcode installation. Only the Xcode betas install separately (by default)

  2. Only downloading Xcode from https://developer.apple.com/downloads/and doing the install manually (by copying Xcode from the DMG to /Applications) will prompt you to replace or keep both.

  1. Mac App Store 上的 Xcode 6 将替换现有的 Xcode 安装。仅 Xcode beta 单独安装(默认情况下)

  2. 只有从https://developer.apple.com/downloads/下载 Xcode并手动安装(通过将 Xcode 从 DMG 复制到 /Applications)才会提示您替换或保留两者。

Select the keep both option when prompt.

出现提示时选择保留两个选项。

回答by Gand Fraser

As an extension to @Ray Richards answer ;) - You can install Xcode 5.1.1 from the following link https://developer.apple.com/downloads/index.action?name=Xcode#

作为@Ray Richards 答案的扩展;) - 您可以从以下链接安装 Xcode 5.1.1 https://developer.apple.com/downloads/index.action?name=Xcode#

This should allow you to run 5.1.1 and 6 on Yosemite.

这应该允许您在 Yosemite 上运行 5.1.1 和 6。