XCode Template Maker 1.0
First public release.
Changes
- Well, I released the darn thing.
Download
Download the Ruby script, & put it somewhere in your $PATH:
XCode Template Maker 1.0
Using The Script
This is a simple script that accepts two arguments:
template-maker.rb </path/to/MyProject.xcodeproj> </where/to/generate/template>
One extra modification is required to make this work – within the MyProject.xcodeproj package, you should add a file named ‘TemplateInfo.plist’, which should be in the usual format for XCode project templates. In particular, note that this file should be encoded in MacRoman. See this example TemplateInfo.plist for guidance.
When generating the project template, in each file listed in the ‘FilesToMacroExpand’ section of the plist, every instance of the project name (e.g. “MyProject” for a project file named MyProject.xcodeproj) will be replaced by the special token «ProjectName». I should eventually add reverse mappings for some of the other special tokens, like for executable name, XML-safe project name, etc., but the ProjectName is good enough for my purposes for now.
Todo List
Your feedback is very welcome. I plan on tackling the following items as time permits:
- Better support for Nib files. This involves you saving the nib file in text (XML) format, and the script being smart about processing the files.
- Support for more special tokens.
- Making the whole thing more robust!
Known Bugs or Issues
- It still kinda sucks.





May 4th, 2008 at 7:08 am
how to i open this file plz reply me.