Custom Project templates

Hi all,


I have created the following project template in the correct folder, the template appears in the selection for the creation of a new project, and the new project is created correctly with all the files listed under <Nodes>, but... the files are all empty! I have added all the respective files to the project template directory, but for some reason Xcode will not copy their contents into the project file... Any idea what I'm doing wrong?

Thanks


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Kind</key>
  <string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
  <key>Identifier</key>
  <string>com.moodsdesign.TivaArmProject</string>
  <key>Concrete</key>
  <true/>
  <key>Description</key>
  <string>This template builds a project that can be uploaded to a TIVA board.</string>
  <key>Nodes</key>
  <array>
  <string>___PACKAGENAMEASIDENTIFIER___.c</string>
  <string>___PACKAGENAMEASIDENTIFIER___.ld</string>
  <string>../Makefile</string>
  <string>startup_gcc.c</string>
  <string>tm4c123gh6pm.h</string>
  </array>
  <key>Definitons</key>
  <dict>
  <key>___PACKAGENAMEASIDENTIFIER___.ld</key>
  <dict>
  <key>Path</key>
  <string>___PACKAGENAMEASIDENTIFIER___.ld</string>
  <key>SubstituteMacros</key>
  <true/>
  <key>TargetIdentifiers</key>
  <array/>
  </dict>
  <key>___PACKAGENAMEASIDENTIFIER___.c</key>
  <dict>
  <key>Path</key>
  <string>___PACKAGENAMEASIDENTIFIER___.c</string>
  <key>SubstituteMacros</key>
  <true/>
  <key>TargetIdentifiers</key>
  <array/>
  </dict>
  <key>tm4c123gh6pm.h</key>
  <dict>
  <key>Path</key>
  <string>tm4c123gh6pm.h</string>
  <key>SubstituteMacros</key>
  <true/>
  <key>TargetIdentifiers</key>
  <array/>
  </dict>
  <key>startup_gcc.c</key>
  <dict>
  <key>Path</key>
  <string>startup_gcc.c</string>
  <key>SubstituteMacros</key>
  <true/>
  <key>TargetIdentifiers</key>
  <array/>
  </dict>
  <key>../Makefile</key>
  <dict>
  <key>Path</key>
  <string>Makefile</string>
  <key>SubstituteMacros</key>
  <true/>
  <key>TargetIdentifiers</key>
  <array/>
  </dict>
  </dict>
  <key>Options</key>
  <array>
  <dict>
  <key>Identifier</key>
  <string>productName</string>
  <key>Required</key>
  <true/>
  <key>Name</key>
  <string>Product Name:</string>
  <key>NotPersisted</key>
  <true/>
  <key>Description</key>
  <string>Your new product&apos;s name</string>
  <key>EmptyReplacement</key>
  <string>ProductName</string>
  <key>Type</key>
  <string>text</string>
  </dict>
  <dict>
  <key>Identifier</key>
  <string>organizationName</string>
  <key>Name</key>
  <string>Organization Name:</string>
  <key>Description</key>
  <string>Your company&apos;s name</string>
  <key>Type</key>
  <string>text</string>
  <key>Default</key>
  <string>___FULLUSERNAME___</string>
  </dict>
  <dict>
  <key>Identifier</key>
  <string>buildToolPath</string>
  <key>Required</key>
  <true/>
  <key>Name</key>
  <string>Build Tool:</string>
  <key>Description</key>
  <string>The path to the build tool to use</string>
  <key>Type</key>
  <string>text</string>
  <key>Default</key>
  <string>/usr/bin/make</string>
  </dict>
  </array>
  <key>Project</key>
  <dict>
  <key>SharedSettings</key>
  <dict>
  <key>TIVA_ROOT</key>
  <string>/Applications/SW-EK-TM4C123GXL-2.1.2.111</string>
  <key>PRODUCT_NAME</key>
  <string>___VARIABLE_productName:RFC1034Identifier___</string>
  <key>PRODUCT_PART</key>
  <string>TM4C123GH6PM</string>
  <key>COPY_PHASE_STRIP</key>
  <string>NO</string>
  </dict>
  <key>Configurations</key>
  <dict>
  <key>Debug</key>
  <dict>
  <key>DEBUG_INFORMATION_FORMAT</key>
  <string>dwarf</string>
  </dict>
  <key>Release</key>
  <dict>
  <key>DEBUG_INFORMATION_FORMAT</key>
  <string>dwarf-with-dsym</string>
  </dict>
  </dict>
  </dict>
  <key>Targets</key>
  <array>
  <dict>
  <key>TargetIdentifier</key>
  <string>com.apple.dt.cocoaLegacyTarget</string>
  <key>TargetType</key>
  <string>Legacy</string>
  <key>Name</key>
  <string>___PACKAGENAME___</string>
  <key>BuildToolPath</key>
  <string>___VARIABLE_buildToolPath___</string>
  <key>BuildToolArgsString</key>
  <string>$(ACTION)</string>
  </dict>
  </array>
</dict>
</plist>


The directory of the project template is as follows


mymac:Other fed$ ll Tiva\ ARM\ Project.xctemplate/
total 1456
-rw-r--r--@ 1 fedmest  admin   2.7K 10 Feb 22:22 Makefile
-rw-r--r--@ 1 fedmest  wheel   3.8K 11 Feb 00:42 TemplateInfo.plist
-rw-r--r--@ 1 fedmest  wheel   2.9K 10 Feb 22:52 ___PACKAGENAMEASIDENTIFIER___.c
-rw-r--r--@ 1 fedmest  admin   1.7K 10 Feb 22:08 ___PACKAGENAMEASIDENTIFIER___.ld
-rw-r--r--@ 1 fedmest  admin    16K 17 Dec 00:58 startup_gcc.c
-rw-r--r--@ 1 fedmest  admin   695K 17 Dec 00:58 tm4c123gh6pm.h
mymac:Other fed$

I gave up on using Xcode's template 'folder' as my own a long time ago. Now, I just save a barebones project and clone it outside of Xode for future use.

Custom Project templates
 
 
Q