Xcode Templates for Stupid Tricks
By Jeremy Rand
Why Create Xcode Templates?
• If you always add the same files to a new project once you create it.
• If you always change/remove something from a new project after you create it.
• If you want to define your own templates for new files.
Why Did I Create Xcode Templates?
Nostalgia??
Creating Xcode Project Templates
• Put the templates in ~/Library/Developer/Xcode/
• In that directory, you can create a directory to group your project templates together
• Each template should then have a directory named <templateName>.xctemplate
• Inside that directory, you need a TemplateInfo.plist
• More info about customizing your template:
• http://stackoverflow.com/questions/15491826/how-to-create-project-templates-in-xcode-4
• More to see in the demo…
Creating Xcode File Templates
• Put the templates in ~/Library/Developer/Xcode/File Templates
• In that directory, you can create a directory to group your file templates together
• Each template should then have a directory named <templateName>.xctemplate
• Inside that directory, you need files called TemplateInfo.plist, TemplateIcon.png, [email protected] and ___FILEBASENAME___.<extension>
• More info about customizing your file template:
• http://www.bobmccune.com/2012/03/04/creating-custom-xcode-4-file-templates/
• More to see in the demo…
Demo Time
If You Want to Code for the Apple //
• Grab the tools and the Xcode templates from here:
• https://github.com/jeremysrand/Apple2BuildPipeline
• Get the Apple 2048 source code from:
• https://github.com/jeremysrand/apple2048
• Get the CurtaSim source code from:
• https://github.com/jeremysrand/CurtaSim
• Go to KansasFest 2015 because … Apple //
• http://www.kansasfest.org