何时以及如何在xcode 4中使用Aggregate Target [英] When and how to use Aggregate Target in xcode 4

查看:100
本文介绍了何时以及如何在xcode 4中使用Aggregate Target的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图寻找一个在Xcode4中使用Aggregate Target的示例,包括其目的以及开发人员使用它的原因.

I was trying to look for an example of using an Aggregate Target in Xcode4, including its purpose and why a developer should use it.

您是否有任何参考链接,尤其是来自Apple Developer网站的参考链接?

Do you have any reference link, especially from Apple Developer web site?

推荐答案

总体目标

Xcode定义了一种特殊的目标类型,可让您构建一组 即使这些目标彼此不依赖,也要立即达到目标.一个 聚合目标没有关联的产品,也没有构建规则. 相反,汇总目标取决于您想要的每个目标 共建.例如,您可能有一组产品 您想一起建立.您将创建一个汇总目标,然后 使它取决于每个产品目标.建立所有 产品,只需建立汇总目标即可.

Xcode defines a special type of target that lets you build a group of targets at once, even if those targets do not depend on each other. An aggregate target has no associated product and no build rules. Instead, an aggregate target depends on each of the targets you want to build together. For example, you may have a group of products that you want to build together. You would create an aggregate target and make it depend on each of the product targets. To build all the products, just build the aggregate target.

聚合目标可能包含一个自定义运行脚本构建阶段或一个 复制文件构建阶段,但不能包含任何其他构建阶段. 聚合目标所包含的任何构建设置都不会 解释但传递到目标的构建阶段 包含.

An aggregate target may contain a custom Run Script build phase or a Copy Files build phase, but it cannot contain any other build phases. Any build settings that the aggregate target contains are not interpreted but are passed to the build phases that the target contains.

来源

这篇关于何时以及如何在xcode 4中使用Aggregate Target的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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