iphoneobjective-cxcodeproject-templatexcode-template

Custom template Logo and description in iPhone Application Templates


I am trying to create a custom "Application template".

I tried to learn, "How to create template?" from the sample templates of "Cocos2d iPhone Game development".

The problems that I am facing are as follows.


Solution

  • If you locate the template in /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates then Show Package Contents on the .xcodeproj file you will see it contains a TemplateIcon.icns. If you add/modify this file then it will appear in your project templates.

    Also, with the description, again if you do the Show Package Contents on the .xcodeproj file you will see a file called TemplateInfo.plist. It contains some code that looks like this:

    <?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>Description</key>
        <string>This is the description for the template</string>
      </dict>
    </plist>