Creating sub-groups in XCode 4 Templates

前端 未结 2 2033
说谎
说谎 2020-12-05 16:31

While there is quite a lot of documentation and example for creating templates in XCode 3 converting them to XCode4 Templates is quite a nightmare...

First here is w

2条回答
  •  我在风中等你
    2020-12-05 16:52

    I've been struggling with this one myself too. As a workaround I've created and added a folder in my TemplateInfo.plist location (in your case that should be folder named Group1). The folder layout (subfolders and files) are the same as I want them to be in my project source tree ( e.g folder 'Group1' has subfolder 'Group2', folder 'Group2' has files File1.h and File1.m etc). Then I just add the root folder (Group1) in my TemplateInfo.plist file by defining it in the Definition section and by adding it to the Nodes section like this:

    Definitions
    
    Group1/
    
    Path
    Group1/
    TargetIndices
    
    
    
    Nodes
    
    Group1
    
    

提交回复
热议问题