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.
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
Post a Comment