When and how to use Aggregate Target in xcode 4

前端 未结 3 979
自闭症患者
自闭症患者 2020-12-17 16:06

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.

Do you have any reference link,

3条回答
  •  执念已碎
    2020-12-17 16:38

    Aggregate Target

    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.

    Source

提交回复
热议问题