“部署目标”之间有什么区别?和“iOS部署目标”在Xcode 4 [英] What's the difference between "Deployment target" and "iOS deployment target" in Xcode 4
问题描述
部署目标
选项以来,我一直在怀疑。 有两个选项可供选择。
- 首先是在TARGETS窗格中,称为
部署目标
。这是为了设置应用程序可以运行的最低iOS版本。 - 其次是PROJECT窗格,称为
iOS部署目标
。那么这是我不熟悉的那个。
有人可以向我解释如何正确设置第二个选项如果我支持说iOS 4+?
- 第一个是关于不同的目标同一个项目,您可以为其定义具体的设置。它通常用于在单个项目中维护不同版本的同一个核心项目。例如:付费版本和试用版,您将有一个付费版本的目标和一个试用目标
- 您可以在此定义调试和发布方案的配置。例如:
您可以看到我添加了一个新的配置。您现在将对实际目标设置不同的设置:
您还可以做一些有趣的东西,例如在目标上选择定义,将它们复制并粘贴到文件(* .xconfig文件) 。您可以使用此文件作为配置,通过定义它的名称:
这对于维护版本库中的设置版本特别有用。
编辑1.0:
我编辑了第二点
I've been living in doubts since Xcode 4 release about deployment target
option.
There are two options to set.
- First is on "TARGETS" pane and is called
Deployment Target
. This one serves the purpose to set the lowest possible iOS version that app can run on. - Second is on "PROJECT" pane and is called
iOS Deployment Target
. Well, this is the one that I'm not familiar with.
Can someone please explain it to me how to properly set second option if I support let say iOS 4+ ?
- The first is related to different targets of the same project where you can define specific settings for them. It's used normally to maintain in a single project, different versions of the same core project. For example: a paid version and a trial version, you would have a target for the paid version and one target for the trial
- Here you can define the configurations for your debug and release schemes. For example:
You can see I added a new configuration. You will now have different settings on the actual targets:
You can also do some fun stuff, like selecting your definitions on the target, copy and paste them on a file (*.xconfig file). You can them use this file as configuration, by defining it's name:
This is particularly useful to maintain versions of the settings on the repository.
Edit 1.0:
I edited the second point
这篇关于“部署目标”之间有什么区别?和“iOS部署目标”在Xcode 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!