TL;DR: What XML snippets do I add to my TemplateInfo.plist files, to create a second compiler target when creating a new Xcode project?
While working on my own Xcode project template, I'm trying to have KIF integration testing working in a 'out of the box' sort of way. KIF requires you to duplicate your regular target and then modify some properties. This is normally done manually, but it both takes time and leaves a margin for error, while it's so mundane it could be automated.
For clarity, I'm looking to create the second target in this screenshot automatically:
I got quite far with the whole template customization, but I just can't figure out how to create another target, even though the templates create one for unit testing if you hit that checkbox. How does Apple do that?
Have a look at the template project over at my github repository. If you want to see what I'm doing with KIF (even though for the answer of this question this is should not be necessary), have a look at the plist in the KIF Integrations.xctemplate folder.