Re: what's the format of TemplateInfo.plist for file template
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:
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"?>
<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