雪豹上的 Xcode 4.5 和 iOS 6

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

Xcode 4.5 with iOS 6 on Snow Leopard

iosxcodesdkinstallationosx-snow-leopard

提问by banditKing

I am looking to get started on iOS 6 development. I had developed on iOS 4 way back and I have Xcode 4.2 running on my machine right now. I also have some projects on there from previous iOS versions.

我希望开始 iOS 6 开发。我是在 iOS 4 上开发的,现在我的机器上运行的是 Xcode 4.2。我也有一些来自以前 iOS 版本的项目。

I would like to download the latest developer version Xcode 4.5 + iOS 6 and start developing on my system however, I dont want to lose the previous projects that I have written. I would like to be able to compile them and run them in the simulator.

我想下载最新的开发者版本 Xcode 4.5 + iOS 6 并开始在我的系统上开发,但是,我不想丢失我以前编写的项目。我希望能够编译它们并在模拟器中运行它们。

I have the following questions:

我有以下问题:

  • Can I install and run Xcode 4.5 on Snow Leopard?

  • Once I install Xcode 4.5 will that upgrade my existing Xcode installation?

  • If my existing Xcode installation is overridden to Xcode 4.5 will I be able to run my apps from iOS 3+ and iOS 4+ on the new Xcode?

  • If Xcode 4.5 installs as a separate installation on my Mac can I run both Xcode versions together? What are the best practices for that installation?

  • 我可以在 Snow Leopard 上安装和运行 Xcode 4.5 吗?

  • 一旦我安装了 Xcode 4.5 会升级我现有的 Xcode 安装吗?

  • 如果我现有的 Xcode 安装被 Xcode 4.5 覆盖,我是否能够在新的 Xcode 上从 iOS 3+ 和 iOS 4+ 运行我的应用程序?

  • 如果 Xcode 4.5 作为单独的安装安装在我的 Mac 上,我可以同时运行两个 Xcode 版本吗?该安装的最佳实践是什么?

回答by Bo A

I can't talk about Xcode 4.5 because of the NDA but I can answer some of your questions based on Xcode 4.3 and 4.4.

由于 NDA,我无法谈论 Xcode 4.5,但我可以根据 Xcode 4.3 和 4.4 回答您的一些问题。



  • Can I install and run Xcode 4.5 on Snow Leopard?
  • 我可以在 Snow Leopard 上安装和运行 Xcode 4.5 吗?

No. Xcode 4.2 is the last supported version on Snow Leopard

否。Xcode 4.2 是 Snow Leopard 上支持的最后一个版本

  • Once I install Xcode 4.5 will that upgrade my existing Xcode installation?
  • 一旦我安装了 Xcode 4.5 会升级我现有的 Xcode 安装吗?

Even though you can't upgrade on Snow Leopard, on Lion Xcode 4.3+ installs besides Xcode 4.0-4.2 with the move of the Developerfolder to inside Xcode.app.

即使您无法在 Snow Leopard 上升级,在 Lion 上,除了 Xcode 4.0-4.2 之外Developer,还会安装 Xcode 4.3+ ,并将文件夹移动到 Xcode.app 内部。

  • If my existing Xcode installation is overridden to Xcode 4.5 will I be able to run my apps from iOS 3+ and iOS 4+ on the new Xcode?
  • 如果我现有的 Xcode 安装被 Xcode 4.5 覆盖,我是否能够在新的 Xcode 上从 iOS 3+ 和 iOS 4+ 运行我的应用程序?

Can't really say about Xcode 4.5 but on 4.4 you would be able to get the iOS 5 simulators with 4.3 available to download manually through the Xcode's preferences window on Lion but you can only use the iOS 5 simulators on Mountain Lion. You can however test for iOS 3+ on a real device.

不能真正说 Xcode 4.5,但在 4.4 上,您可以通过 Lion 上的 Xcode 首选项窗口手动下载带有 4.3 的 iOS 5 模拟器,但您只能在 Mountain Lion 上使用 iOS 5 模拟器。但是,您可以在真实设备上测试 iOS 3+。

  • If Xcode 4.5 installs as a separate installation on my Mac can I run both Xcode versions together? What are the best practices for that installation?
  • 如果 Xcode 4.5 作为单独的安装安装在我的 Mac 上,我可以同时运行两个 Xcode 版本吗?该安装的最佳实践是什么?

You would have to be under Lion in this case with both Xcode 4.2 and 4.5 installed. There should be no problem with this.

在这种情况下,您必须在 Lion 下同时安装 Xcode 4.2 和 4.5。这应该没有问题。

回答by Jerod

"Xcode 4.2 is the last supported version on Snow Leopard." - Glad I found this.

“Xcode 4.2 是 Snow Leopard 上支持的最后一个版本。” - 很高兴我找到了这个。

For some reason the Xcode 4.2 Snow Leopard Image is not available via the iOS Developer Portal. It is offered for Lion, but the latest version for Snow Leopard available is 3.2.5.

出于某种原因,Xcode 4.2 Snow Leopard Image 无法通过 iOS 开发者门户获得。它是为 Lion 提供的,但适用于 Snow Leopard 的最新版本是 3.2.5。

However it is available via the Mac Developer Portal, as I found here: enter image description here

但是,它可以通过 Mac 开发人员门户获得,正如我在此处找到的: 在此处输入图片说明

Ridiculous, but most likely mix up on their part.

可笑,但很可能是他们搞混了。