基础与主动与部署目标 [英] Base versus Active versus Deployment target

查看:91
本文介绍了基础与主动与部署目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题的一部分是在几个变种中提出的,但我想确保我的意思是正确的。

I know that parts of this question was asked in several variation but I want to make sure I got it right.

这是我想要的假设和理解知道他们是否正确提交之前。

Here are my assumptions and understandings which I want to know if they are correct before submitting.

我的应用程序假设所有操作系统都支持功能,所以我应该:

My application assumes features supported by all OS, and so I should:


  1. 将Active SDK设置为最新的(目前为SDK 3.0)。

  2. 将部署目标设置为要支持的部署目标 - iPhone 2.0以上?

  3. 什么是Base SDK?我应该忽略它,如果我选择Active SDK不同,我在项目设置中看到Active SDK?

问题 - 苹果允许选择iPhone OS 2.0作为部署目标?

One final question - is apple allowing to choose iPhone OS 2.0 as the Deployment Target?

提前感谢,

BTW - 这个问题的主要原因之一是因为在使用早期的SDK进行编译的时候,当这个动画被保存为多次使用时,苹果似乎发布了UIImageView动画数组的内存。这是一个已知的问题,使用SDK 3.0(通过简单地将UIImageView动画数组设置为nil)来解决。

BTW - one of my main reason for this question is because when compiling with earlier SDKs apple seems to have a problem releasing the memory for UIImageView animation array when this animation was saved for multiple time usage. This is a known problem that was fixed with SDK 3.0 (by simply setting the UIImageView animation array to nil)

推荐答案

Base和Active SDK是前者是项目的默认SDK集,后者是您正在构建的SDK。因此,您的Active SDK可能是Base SDK,此时XCode将使用您为项目指定的SDK。

The difference between the Base and Active SDK is that the former is the default SDK set for the project and the latter is the SDK you are currently building against. So it is possible for your Active SDK to be the Base SDK, at which point XCode will use the SDK you specified for the project.

为了构建您的应用程序最广泛的设备可能,您是正确的:

In order to build your app for the widest set of devices possible, you are correct:


  • 将Base SDK设置为最新的SDK可能(3.0,3.0.1)

  • 将部署目标设置为最早的SDK(2.0)

Apple允许您指定iPhone 2.0作为部署目标,但请记住,在iPhone 2.0之后发布的任何API或框架,您将无法使用默认使用。有使用以后的SDK的功能的技术,但是它们是不平凡的。

Apple does allow you to specify iPhone 2.0 as the Deployment Target, but keep in mind any API or framework released after iPhone 2.0 you will not have available to you for use by default. There are techniques to use features from later SDKs, however they are nontrivial.

这篇关于基础与主动与部署目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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