Re: Custom Xcode template _Prefix.pch rename woes
Re: Custom Xcode template _Prefix.pch rename woes
- Subject: Re: Custom Xcode template _Prefix.pch rename woes
- From: Jim Wrenholt <email@hidden>
- Date: Tue, 21 Aug 2007 01:57:07 -0500
I wrote up some my experiences with TemplateInfo.plist on the wiki.
http://www.carbondev.com/site/?page=TemplateInfo.plist
http://www.carbondev.com/site/?page=CreatingCustomProjectTemplates
http://www.carbondev.com/site/?page=Xcode+Hints
Jim Wrenholt
On Aug 20, 2007, at 11:33 PM, Ken Tozier wrote:
Hi
I'm creating a custom Xcode template and am having problems getting
the xxx__Prefix.pch renaming. If I put the MyTemplate_Prefix.pch
file in the same folder as the project, it works fine, but if I put
it in a subfolder, no luck.
the folder hierarchy is as follows
Project folder
MyTemplate.xcodeproj
source
MyTemplate_Prefix.pch
resource
In the project settings, I define "Prefix Header" under "Collection-
>Language" to "./source/«PROJECTNAME»_Prefix.pch" (also tried ./
source/MyTemplate_Prefix.pch)
In the "TemplateInfo.plist" inside MyTemplate..xcodeproj I've tried
all of the following without luck (ie: the resulting
UserProject_Prefix.pch is always colored red)
{
FilesToRename = {
"./source/GenericXTension_Prefix.pch" = "./
source/«PROJECTNAME»_Prefix.pch";
};
FilesToMacroExpand = (
"Info.plist",
"English.lproj/InfoPlist.strings",
"./source/«PROJECTNAME»_Prefix.pch",
);
Description = "This project builds a MyTemplate project.";
}
----------------------------------------------------------------------
-----------------
{
FilesToRename = {
"source/GenericXTension_Prefix.pch" =
"source/«PROJECTNAME»_Prefix.pch";
};
FilesToMacroExpand = (
"Info.plist",
"English.lproj/InfoPlist.strings",
"source/«PROJECTNAME»_Prefix.pch",
);
Description = "This project builds a MyTemplate project.";
}
----------------------------------------------------------------------
-----------------
{
FilesToRename = {
"source/GenericXTension_Prefix.pch" =
"source/«PROJECTNAME»_Prefix.pch";
};
FilesToMacroExpand = (
"Info.plist",
"English.lproj/InfoPlist.strings",
"«PROJECTNAME»_Prefix.pch",
);
Description = "This project builds a MyTemplate project.";
}
----------------------------------------------------------------------
-----------------
{
FilesToRename = {
"GenericXTension_Prefix.pch" = "«PROJECTNAME»_Prefix.pch";
};
FilesToMacroExpand = (
"Info.plist",
"English.lproj/InfoPlist.strings",
"source/«PROJECTNAME»_Prefix.pch",
);
Description = "This project builds a MyTemplate project.";
}
----------------------------------------------------------------------
-----------------
{
FilesToRename = {
"GenericXTension_Prefix.pch" = "«PROJECTNAME»_Prefix.pch";
};
FilesToMacroExpand = (
"Info.plist",
"English.lproj/InfoPlist.strings",
"«PROJECTNAME»_Prefix.pch",
);
Description = "This project builds a MyTemplate project.";
}
Is there any way to get this working for prefix files in a project
subfolder? Or does the prefix have to be a sibling of the
MyTemplate.xcodeproj project?
Thanks for any help
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40nordicsoftware.com
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