Custom Xcode template _Prefix.pch rename woes
Custom Xcode template _Prefix.pch rename woes
- Subject: Custom Xcode template _Prefix.pch rename woes
- From: Ken Tozier <email@hidden>
- Date: Tue, 21 Aug 2007 00:33:57 -0400
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:
This email sent to email@hidden