简体   繁体   English

并排安装iphone sdks

[英]install iphone sdks side by side

Im trying to get my xCode to contain all iPhone sdk's from 4 back to 2. But when I download the DMG files, it seems to only allow me to have an xCode with SDK versions 2 - 3.1 OR 3.2 - 4, not all together. 我试图让我的xCode包含所有iPhone sdk从4回到2.但是当我下载DMG文件时,它似乎只允许我有一个xCode与SDK版本2 - 3.1或3.2 - 4,而不是所有。

How can I install the SDK's into one xCode so I can build for all different OS versions? 如何将SDK安装到一个xCode中,以便为所有不同的OS版本构建?

Thanks 谢谢

EDIT:: 编辑::

Ok so I know I can set the base SDK in xcode, but the options I have are only 3.2 or 4.0 , I cant seem to install the 3.1 or earlier SDK's how can this be done? 好的,我知道我可以在xcode中设置基础SDK,但我的选项只有3.24.0 ,我似乎无法安装3.1或更早版本的SDK,如何做到这一点?

Final Edit:: 最终编辑::

Ok got it solved, basically you only need to have an older version of xcode installed to get earlier simulators running, otherwise the articles given to me in my answers as well as others were very helpful: 好了解决了,基本上你只需要安装一个旧版本的xcode来运行早期的模拟器,否则在我的答案中给我的文章以及其他文章都非常有帮助:

http://www.clarkcox.com/blog/2009/06/23/sdks-and-deployment-targets/ http://www.clarkcox.com/blog/2009/06/23/sdks-and-deployment-targets/

Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs 安装xCode 3.2.3 w / iPhone SDK 4,得到“Base SDK missing”,看不到其他SDK

How To Make iPhone App compatible with multiple SDK (firmware) versions 如何使iPhone App与多个SDK(固件)版本兼容

http://cocoawithlove.com/2010/07/tips-tricks-for-conditional-ios3-ios32.html (possibly the best one) http://cocoawithlove.com/2010/07/tips-tricks-for-conditional-ios3-ios32.html (可能是最好的一个)

Is there any particular reason you need to do this? 你有什么特别的理由需要这样做吗? Are you trying to develop applications that will run on iOS 4.x and older versions (3.x)? 您是否正在尝试开发将在iOS 4.x及更早版本(3.x)上运行的应用程序? You can still develop applications which will run on iOS 3.1.x with the iOS 4.x sdk. 您仍然可以使用iOS 4.x sdk开发在iOS 3.1.x上运行的应用程序。

Take a look at the following article: http://www.clarkcox.com/blog/2009/06/23/sdks-and-deployment-targets/ 请查看以下文章: http//www.clarkcox.com/blog/2009/06/23/sdks-and-deployment-targets/

I tried the same thing some time ago, and it seems some minor SDK versions are automatically removed during the install process... 我前段时间尝试过同样的事情,似乎在安装过程中会自动删除一些次要的SDK版本...

You may tried to copy them before installing the other XCode versions, and re-install them just after. 在安装其他XCode版本之前,您可能会尝试复制它们,然后重新安装它们。
They are located in /Library/Platforms/iPhoneOS.platform/Developer/SDKs/ and /Library/Platforms/iPhoneSimulator.platform/Developer/SDKs/ . 它们位于/Library/Platforms/iPhoneOS.platform/Developer/SDKs//Library/Platforms/iPhoneSimulator.platform/Developer/SDKs/

Note that you can also choose to install each XCode version in a separate directory. 请注意,您还可以选择将每个XCode版本安装在单独的目录中。
You will lose a lot of hard disk space, and you'll have multiple versions of XCode, each one with different SDK versions. 您将丢失大量的硬盘空间,并且您将拥有多个版本的XCode,每个版本都有不同的SDK版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM