XcodeGen icon indicating copy to clipboard operation
XcodeGen copied to clipboard

Which product type should I use for a project containing only aggregate target?

Open greensky01 opened this issue 6 years ago • 3 comments

What I want to is to use a single project to manage all other sub-projects, so that I only need to build this single project in my shell script to have all other sub-projects built.

The problem is I am not sure which product type I should use. Currently, this single project has no product at all, it just has many dependencies in its target.

I tried with type: application, but the generated project gives me an app product, which I don't need.

greensky01 avatar Nov 27 '19 06:11 greensky01

Is aggregateTargets what you are looking for? https://github.com/yonaskolb/XcodeGen/blob/master/Docs/ProjectSpec.md

yonaskolb avatar Nov 27 '19 09:11 yonaskolb

Hi @yonaskolb,

Thanks for replying!

I read that part, but I am still not very clear how to list targets in the project.yml.

Let's say the aggregate target is called tarA, and it has 2 external target dependencies from project B (tarB) and project C (tarC), what does a correct project.yml look like?

greensky01 avatar Nov 27 '19 11:11 greensky01

How I understand aggregate targets right now, it is not possible to have external targets (e.g. from project B or C) be used in project A. I think XcodeGen needs to be improved to support this scenario.

Edit: I created a draft PR that adds basic functionality to add project external targets to aggregate targets: https://github.com/yonaskolb/XcodeGen/pull/1260

skofgar avatar Sep 06 '22 19:09 skofgar