简体   繁体   English

XCode和最新的iOS SDK

[英]XCode and recent iOS SDK

I am currently using XCode 3.2.2 and iOS SDK 3.2 . 我目前正在使用XCode 3.2.2 and iOS SDK 3.2 With these I can produce binary which works on iPhone 3.1.3. 有了这些,我就可以生成可在iPhone 3.1.3上运行的二进制文件。 If I upgrade to XCode 3.2.4 and iOS 4.1 , would I still be able to build binaries for iPhone 3.1.3 device? 如果我升级到XCode 3.2.4 and iOS 4.1 ,是否仍可以为iPhone 3.1.3设备构建二进制文件? If no, can I install both, or it's tricky? 如果没有,我可以同时安装这两个工具吗?

Eiko is correct, what's more I believe that apple will no longer accept applications built with pre 4.x SDK. Eiko是正确的,而且我相信Apple将不再接受使用4.x SDK之前版本构建的应用程序。

To get this set up you need to change the following settings 要进行此设置,您需要更改以下设置

  • Set the "Base SDK" in your projects settings to the newest version number of iOS whose features you may want. 在项目设置中将“基本SDK”设置为您可能需要其功能的iOS最新版本。

  • Set the "iPhone OS Deployment Target" to the oldest version number of iOS that you will support. 将“ iPhone OS部署目标”设置为您将支持的最早的iOS版本号。

Courtesy of CocoaWithLove CocoaWithLove提供

Regarding installing multiple versions, it's not tricky... just awkward. 关于安装多个版本,这并不棘手……只是尴尬。 The release versions of XCode are installed into the /Developer directory. XCode的发行版本安装在/Developer目录中。 To install multiple versions you need to move the /Developer directory to something else eg /OldXCode and then install the new version (Which is put into /Developer ) 要安装多个版本,您需要将/Developer目录移动到其他位置,例如/OldXCode ,然后安装新版本(将其放入/Developer

Hope that helps 希望能有所帮助

You can, and you should, always use the latest SDK. 您可以并且应该始终使用最新的SDK。

You can easily build agains 4.1 and still target 3.x - in fact most developers do this at the moment. 您可以轻松地构建Agains 4.1并仍然以3.x为目标-实际上,目前大多数开发人员都这样做。

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

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