您可以在 Xcode 4.6.2 的同时安装 Xcode 5 Developer Preview 吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17047449/
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
Can you install the Xcode 5 Developer Preview in parallel with Xcode 4.6.2?
提问by CRDave
Apple announced the Xcode 5 Developer Preview today and I want to try it.
Apple 今天宣布了 Xcode 5 Developer Preview,我想尝试一下。
But before I download this, I want to know that what happen with my current version of Xcode (version 4.6.2)?
但在下载之前,我想知道我当前版本的 Xcode(4.6.2 版)会发生什么?
Will the Xcode 5 Developer Preview install as a different application or it will remove the old version? Will some common tools collide, like the command line tools?
Xcode 5 Developer Preview 是作为不同的应用程序安装还是删除旧版本?一些常用的工具会不会冲突,比如命令行工具?
回答by Terminality
The Xcode 5 developer preview comes as a normal app DMG (not with the usual packager/installer) and has a different name.
Xcode 5 开发者预览版是一个普通的应用 DMG(不是通常的打包程序/安装程序),并且具有不同的名称。
So essentially, you download it, open a DMG, then pull to the Applications folder and thence have two Xcodes there (the old and the new one called Xcode5-DP
). It even comes with a slightly different icon (red badge across a corner) and the intro screen is different too, so there is very little chance of confusing them.
所以本质上,你下载它,打开一个 DMG,然后拉到 Applications 文件夹,那里有两个 Xcode(旧的和新的称为Xcode5-DP
)。它甚至带有一个略有不同的图标(一个角落里的红色徽章)并且介绍屏幕也不同,因此几乎没有可能混淆它们。
I already did that today (and a colleague also).
我今天已经这样做了(还有一位同事)。
回答by smileBot
Now that xcode 5 has reached the first official release and is no longer in beta, you have to do ONE of the following if you wish to keep BOTH versions.
现在 xcode 5 已经发布了第一个正式版本并且不再处于测试阶段,如果您希望保留两个版本,则必须执行以下操作之一。
- Run the dmg of the new version you download from developer.apple.com. Drag the app to applications, and when asked to overwrite click KEEP BOTH. This will rename the existing app to xcode 2 I believe.
- Select your existing xcode 4 in applications. Rename it to xcode4 or whatever. Now you can drag in the new version without overwriting the existing one.
- Drag the new xcode to someplace other than applications. Rename it and then drag it into applications.
- 运行您从 developer.apple.com 下载的新版本的 dmg。将应用程序拖到应用程序中,并在要求覆盖时单击 KEEP BOTH。我相信这会将现有应用程序重命名为 xcode 2。
- 在应用程序中选择您现有的 xcode 4。将其重命名为 xcode4 或其他名称。现在您可以在不覆盖现有版本的情况下拖入新版本。
- 将新的 xcode 拖到应用程序以外的地方。重命名它,然后将其拖到应用程序中。
I personally favour option 2, since going forward we'll be using xcode 5 and it's helpful if it retains the default name from the get go for easy updating.
我个人更喜欢选项 2,因为今后我们将使用 xcode 5,如果它从一开始就保留默认名称以便于更新,这会很有帮助。
BTW, if you do have more than one xcode installed expect the mac app store to report that you need to do an update. Probably best to install it by downloading it from the developer portal if this sort of thing bugs you.
顺便说一句,如果您确实安装了多个 xcode,请期待 mac 应用商店报告您需要进行更新。如果此类事情困扰您,最好通过从开发人员门户下载它来安装它。
回答by Idan
Xcode 5 preview works fine with Xcode 4.6.2 or any other Xcode, It has different icon and it runs from its .dmg file (no install).
Xcode 5 预览版适用于 Xcode 4.6.2 或任何其他 Xcode,它具有不同的图标,并且从其 .dmg 文件运行(无需安装)。
Pay attention you cannot submit an app with Xcode 5, So keep the old Xcode till Apple would release the stable version of Xcode 5.
请注意,您不能使用 Xcode 5 提交应用程序,因此请保留旧的 Xcode,直到 Apple 发布 Xcode 5 的稳定版本。
回答by Bivis
Short answer: Dont replace XCode 4! If you plan to deploy some app to appstore, you can't do it using Xcode 5 at this moment.
简短回答:不要替换 XCode 4!如果您打算将某个应用程序部署到 appstore,则目前无法使用 Xcode 5 来完成。
The best way is download the Xcode 5 version, unpack it and run the app on different folder (not application folder). You will stay with Xcode 4, and can run Xcode 5 separated (You don't need to 'install' xcode 5).
最好的方法是下载 Xcode 5 版本,解压并在不同的文件夹(不是应用程序文件夹)上运行应用程序。您将继续使用 Xcode 4,并且可以单独运行 Xcode 5(您不需要“安装”xcode 5)。