Creating a custom XCode project template with subfolders -


i have been playing project templates in order create custom template. know how create subgroups, create empty folder represented group. problem comes when try create more complicated structure subfolders. closest approach got these lines of code inside templateinfo.plist:

<key>definitions</key> <dict>     <key>parent</key>     <dict>         <key>path</key>         <string>parent</string>     </dict>     <key>parent/child</key>     <dict>         <key>group</key>         <array>             <string>parent</string>         </array>         <key>path</key>         <string>parent/child</string>     </dict> </dict> <key>nodes</key> <array>     <string>parent</string>     <string>parent/child</string> </array> 

but adding 2 references child, 1 pointing correct child folder, , other parent.

p.s. inside .xctemplate have empty folders same structured.

well, answer myself hoping helpful else.

just defining folder list rest of content, if has subfolder add group project related link folder.

<key>definitions</key> <dict>     <key>parent</key>     <dict>         <key>path</key>         <string>parent</string>     </dict> </dict> <key>nodes</key> <array>     <string>parent</string> </array> 

but gives problem. in case of having files, recognize last 1 folder producing kind of funny results.

enter image description here

i don't know if bug of xcode or i'm using kind of hack list subfolders.

i hope else can find solution problem.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -