安装新旧版本的Xcode [英] Installing new and old versions of Xcode

查看:195
本文介绍了安装新旧版本的Xcode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我看到这篇文章: http://mobiledevelopertips.com/xcode/download-and-install-older-versions-of-xcode-xcode-previous-releases.html



<关于下载旧版Xcode的问题。到目前为止,我一直只是从App Store下载了最新版本的Xcode,让它做到了。最近在一台安装了Xcode 4.5的计算机上,我注意到如果我创建一个新项目,我只会得到iOS 6.0模拟器,而不是5.0或5.1。


  1. 我的第一个问题是,我是否需要旧版本的Xcode来构建适用于较旧操作系统的应用程序(例如iOS 4,iOS 5.0) ,5.1等)?


  2. 如果是这样,安装这些旧版Xcode的最佳方法是什么。我看到他们也有下载的命令行工具。我不确定这些东西是如何起作用的。


  3. 更新到最新Xcode但保留旧Xcode的最佳方法是什么?在安装了Xcode 4.4.1的另一台机器上,我想我可以从ADC网站下载Xcode 4.5并进行安装。我下载了它,双击.dmg,然后双击Xcode文件。然后安装了Xcode 4.5而没有问我在哪里安装它,所以我可以保留旧版本的Xcode(假设我需要它,如我在第一个问题中所述)。


谢谢!

解决方案


我注意到如果我创建一个新项目,我只会得到iOS 6.0模拟器,而不是5.0或5.1。


选择您的项目目标并在摘要标签中,为您的应用设置最低的部署目标(我认为默认Xcode 4.5)中的值为6.0。


我的第一个问题是,我是否需要旧版本的Xcode来构建适用于旧操作系统的应用程序(例如iOS 4,iOS 5.0,5.1等)?


如果您从旧版Xcode更新,则可以使用旧版本SDK&新版本的模拟器。


如果是这样,安装这些旧版Xcode的最佳方法是什么。我看到他们也有下载的命令行工具。我不确定这些东西是如何工作的。


实际上,不同版本的Xcode可以互相开心。它现在是一个App Bundle。


第三个问题


只需将新版本的Xcode拖到Application文件夹即可。那已经完成了。 :)


So I saw this post: http://mobiledevelopertips.com/xcode/download-and-install-older-versions-of-xcode-xcode-previous-releases.html

about downloading older versions of Xcode. Up to now, I have always just downloaded the newest version of Xcode from the App Store and let it do its thing. Recently on one computer that has Xcode 4.5 installed on it, I noticed that if I create a new project, I only get the iOS 6.0 simulators, not the 5.0 or 5.1.

  1. My first question is, do I need older versions of Xcode to build apps for older OS (e.g. iOS 4, iOS 5.0, 5.1, etc)?

  2. If so, what's the best way of installing these older versions of Xcode. I see that they have the command line tools to download as well. I'm not sure how all that stuff works.

  3. What's the best way to update to the latest Xcode but keeping the old Xcode around? On a different machine that had Xcode 4.4.1 installed, I thought I could download Xcode 4.5 from the ADC website and install it. I downloaded it, double-clicked on the .dmg, then double-clicked on the Xcode file. This then installed Xcode 4.5 without asking me where I wanted it installed so I could keep the older version of Xcode (assuming that I need it as stated in my 1st question).

Thanks!

解决方案

I noticed that if I create a new project, I only get the iOS 6.0 simulators, not the 5.0 or 5.1.

Choose your project target and in Summary tab, set the lowest Deployment Target for your app (I think the default value is 6.0 in Xcode 4.5).

My first question is, do I need older versions of Xcode to build apps for older OS (e.g. iOS 4, iOS 5.0, 5.1, etc)?

If you've updated from old version of Xcode, you can use the old SDK & simulator in new version.

If so, what's the best way of installing these older versions of Xcode. I see that they have the command line tools to download as well. I'm not sure how all that stuff works.

Actually, different versions of Xcode can stay happily with each other. It is a App Bundle right now.

third question

Just drag the new version of Xcode to Application folder. That's done. :)

这篇关于安装新旧版本的Xcode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆