I try to create a Xcode template. I followed the question Xcode 4 template create empty group but it doesn't work anymore.
There is only a file called "Application" (without an extension).
TemplateInfo.plist
<key>Nodes</key>
<array>
<string>Application</string>
</array>
<key>Definitions</key>
<dict>
<key>Application</key>
<dict>
<key>Path</key>
<string>Application</string>
</dict>
</dict>
Current result:
Expected result:
How do I have to change the TemplateInfo.plist so Xcode generates an empty folder called Application and not a file without an extension?
In Xcode 8, I wanted to add an empty group for to ensure the template follows a specific scaffolding. Through trial and error, I achieved this by I adding an empty folder in the xctemplate directory, and then configured the node / definition accordingly. I hope this helps :)
<key>Nodes</key>
<array>
<string>Application</string>
</array>
<key>Definitions</key>
<dict>
<key>Application</key>
<dict>
<key>Path</key>
<string>Application/</string>
</dict>
</dict>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With