iPhone:最低操作系统,部署目标和基础/活动SDK [英] iPhone: Minimum OS, Deployment Target & Base/Active SDK

查看:120
本文介绍了iPhone:最低操作系统,部署目标和基础/活动SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对为应用程序商店构建应用程序以及正确的SDK&操作系统版本我已将我的应用程序提交到应用程序商店,并在iTunes连接的应用程序详细信息屏幕中显示:

I'm a little confused about building an app for the app store and for the correct SDK & OS version. I have submitted my app to the app store, and in the app details screen of iTunes connection it says:

最低操作系统要求:3.1.2

我还没有看到应用程序商店中有3.1.2作为最低操作系统的任何应用程序,他们都说3.0。在我构建它之前,我在这里阅读了几个内容,我认为我理解了所有内容!

I haven't seen any apps on the app store that have 3.1.2 as the min OS, they all say 3.0. I read several things on here before I built it and I thought I understood everything!

基本上,我的应用程序不使用仅存在于> 3.0的任何代码所以我希望最低操作系数为3.0。我的构建设置为:

Basically, my app doesn't use any code that only exists in > 3.0 so I would like the minimum OS to be 3.0. My build settings were:

目标信息


  • 基础SDK:iPhone设备3.0

  • iPhone操作系统部署目标:iPhone OS 3.0

Xcode主窗口


  • 活动SDK:iPhone设备3.1.2

我听说Info.plist中有一个最低操作系统版本,但我手边没有这样的东西。

I've heard about a minimum OS version being put in the Info.plist but I haven't got anything like that in mine.

我完全按照这种方式构建应用程序并提交它。我的应用设置是否正确?我的应用会在应用商店或3.1.2中显示3.0吗?我不太确定为什么要将Active SDK设置为最新版本(3.1.2)时想要定位3.0,3.1& 3.12设备,但这是我读到的!

I build the app exactly like that and submitted it. Are my app settings correct? Will my app display 3.0 in the app store or 3.1.2? I'm a little unsure as to why you set the Active SDK to the latest (3.1.2) when you want to target 3.0 , 3.1 & 3.12 devices, but it's what I read!

非常感谢任何帮助建议!

Any help advice be greatly appreciated!

推荐答案

好吧,经过多次阅读,我已经成功解决了这个问题!

Okay I've managed to figure it out after much reading!

基本上,Active SDK只是Base SDK的构建时覆盖。默认情况下,当Base SDK更改时,它会自动将部署目标更改为与SDK相同的操作系统。因此,当我想在3.1.2 SDK下构建应用程序但在3.0 OS上运行时,我将Active SDK更改为3.1.2,但这已自动更改了最低操作系统(部署目标)。我通过查看.app文件中包内容中的Info.plist文件看到了这一点。

Basically, the Active SDK is just a build time override of the Base SDK. By default, when the Base SDK changes it automatically changes the Deployment Target to the same OS as the SDK. So when I wanted to build the app under the 3.1.2 SDK but have it run on 3.0 OS, I changed the Active SDK to 3.1.2, but that had automatically changed the minimum OS (deployment target). I saw this by looking at the Info.plist file in the package contents in my .app file.

所以最好的办法是将Base SDK设置为最新的SDK(目前为3.1.2),然后手动将部署目标设置为3.0 OS。一旦2不同,它将不再自动更改。

So the best thing to do is to set the Base SDK to the latest SDK (currently 3.1.2) and then manually set the Deployment Target to 3.0 OS. Once the 2 are different then it will no longer automatically change.

但是,这意味着您的应用程序可以安装在可能具有3.0,3.1或3.1的3.0设备上.2 SDKs。因此,您使用的任何框架,方法或属性仅在大于3.0的SDK中可用时,您必须使用有条件地

However, this means that your app can install on a 3.0 device that may have 3.0, 3.1, or 3.1.2 SDKs. Therefore, any frameworks, methods or properties you use that are only available in SDKs greater than 3.0 you will have to use conditionally.

当您开始构建应用程序时,请确保将Active Target设置为与Base SDK相同,例如:设备3.1.2。但请记住在Device 3.0,Device 3.1和Device 3.1.2下编译您的应用程序只是为了检查编译器警告。这将确保您没有任何代码访问任何SDK中不存在至部署目标的方法/框架。

When you get around to building the app, ensure that that Active Target is set as the same as your Base SDK, e.g. Device 3.1.2. But remember to compile your app under Device 3.0, Device 3.1, and Device 3.1.2 just to check for compiler warnings. This will ensure that you don't have any code accessing methods/frameworks that don't exist in any SDKs down to your Deployment Target.

我希望这可以帮助任何人是我的位置,无法找到一切有效的简单解释。

I hope this helps anyone who is in my position and couldn't find a simple explanation of how it all works.

SDK兼容性指南非常实用且信息丰富。然而,我只需要花一些额外的时间来理解这个概念以及一切如何运作。该指南中的图片非常有用:

The SDK Compatibility Guide was very useful and informative. However it took just a little extra figuring out for me to be comfortable with the concept and how everything works. This image from the guide is useful:

alt text http://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/cross_development/art/using_sdks.jpg

这篇关于iPhone:最低操作系统,部署目标和基础/活动SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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