简体   繁体   English

Xcode 8-为什么“项目和目标”设置可以选择不同的部署目标版本?

[英]Xcode 8 - Why do Project & Target settings have the option of different deployment target versions?

Xcode 8.3.2 Here are the screenshots from the same test project. Xcode 8.3.2这是来自同一测试项目的屏幕截图。

  1. Select "Project" you can choose the deployment target IOS version 选择“项目”,可以选择部署目标的IOS版本

项目截图 2. Select "Target" you get another choice of deployment target version 2.选择“目标”,您将获得另一种部署目标版本的选择

目标截图 I am probably missing something, but I don't understand the benefit of the 2 separate choices! 我可能会缺少一些东西,但是我不明白这两个单独选择的好处!
(I have shown them as different here, but in my real project I always set them the same). (我在这里显示了它们的不同,但是在我的真实项目中,我总是将它们设置为相同)。

A project can have multiple targets. 一个项目可以有多个目标。 It's possible that some of the targets could have a older or newer Deployment Target than the rest of the targets. 有些目标的部署目标可能比其他目标的旧或新。

The project-level lets you set the most common Deployment Target used by most targets. 在项目级别,您可以设置大多数目标使用的最常见的部署目标。 You can then adjust a specific target to have a different Deployment Target if needed. 然后,可以根据需要将特定目标调整为具有不同的部署目标。

When you only have one target, it doesn't matter which you change, the project or the target. 当您只有一个目标时,无论更改哪个项目或目标都没有关系。

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

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