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

Childs targets #591

Closed
AlexisQapa opened this issue May 22, 2019 · 2 comments
Closed

Childs targets #591

AlexisQapa opened this issue May 22, 2019 · 2 comments

Comments

@AlexisQapa
Copy link

Splitting my app into smaller frameworks, I found great help from templates. There is still something bothering me, we can't associate a child target/template to another.

How awesome it would be to define:
A Unit test template
A UI test template
A "Data" framework template (having an associated Unit test template)
A "UI" framework template (having an associated UI test template)
Some "Data" and "UI" frameworks

and then XcodeGen could generate all targets and their associated tests targets.

Additionally as "UI" framework could inherit from "Data" framework it could gain Units tests target for free if associated target/template is an array

@AlexisQapa
Copy link
Author

Maybe this could be only some kind of helper generating tests targets (not going generic associated targets)

@yonaskolb
Copy link
Owner

Do you have an example of what this would look like in a spec?

What if include files had access to attributes like target templates do? That would allow you to set up related targets in a single file and then include it multiple times.

A note that this PR would break that, and would need to be updated to allow multiple files with different attributes #599

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

2 participants