Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
greensky01 opened this issue Nov 27, 2019 · 3 comments

Comments

@greensky01
Copy link

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.

@yonaskolb
Copy link
Owner

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

@greensky01
Copy link
Author

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?

@skofgar
Copy link
Contributor

skofgar commented Sep 6, 2022

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: #1260

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants