aaron.harnly.net

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:

  1. 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.
  2. Support for more special tokens.
  3. Making the whole thing more robust!

Known Bugs or Issues

  • It still kinda sucks.
Digg this     Create a del.icio.us Bookmark     Add to Newsvine

One Response to “XCode Template Maker 1.0”

  1. kunnu singh Says:

    how to i open this file plz reply me.

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word