• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: what's the format of TemplateInfo.plist for file template
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what's the format of TemplateInfo.plist for file template


  • Subject: Re: what's the format of TemplateInfo.plist for file template
  • From: Matt Thomas <email@hidden>
  • Date: Tue, 15 Mar 2011 12:41:38 -0400

I ran across a guide for creating a project template the other day. I don't know if it will help but it does go into the TemplateInfo.plist:
http://blog.boreal-kiss.net/2011/03/11/a-minimal-project-template-for-xcode-4/

Now, keep in mind that creating your own Xcode 4 templates is unsupported by Apple. The format could change at any point. Also, that link I posted shows that just messing up the TemplateInfo.plist can cause data loss. If you want official support from Apple, I recommend filing a bug report asking to open up the Xcode project template format.


- Matt

On Tue, Mar 15, 2011 at 6:18 AM, trash box <email@hidden> wrote:
May I know whether there is a complete reference for TemplateInfo.plist?

I want to create a file template with several groups containing ObjC classes.

No idea how to do it, but I tried a plist file like:

<?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>Adds a new module to a project.</string>
<key>EnclosingGroupName</key>
<string>%@</string>
<key>FileToDisplay</key>
<string>%@.m/%1$@.h</string>
<key>ImplicitCounterpartTemplateFiles</key>
<dict>
<key>g1</key>
<string>g1</string>
</dict>
<key>ImplicitExtraTemplateFiles</key>
<dict>
<key>1.h</key>
<string>g1/1.h</string>
<key>1.m</key>
<string>g1/1.m</string>
</dict>
</dict>
</plist>

This template can creat a physical folder instead of a group containing 1.h+1.m. It's OK. 

The problem is 1.m is not in the target. 

I am lost, please help.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: what's the format of TemplateInfo.plist for file template
      • From: trash box <email@hidden>
References: 
 >what's the format of TemplateInfo.plist for file template (From: trash box <email@hidden>)

  • Prev by Date: Re: No ppc from Xcode 4?
  • Next by Date: Re: Xc4 UI
  • Previous by thread: what's the format of TemplateInfo.plist for file template
  • Next by thread: Re: what's the format of TemplateInfo.plist for file template
  • Index(es):
    • Date
    • Thread