• 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
Custom Xcode template _Prefix.pch rename woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Custom Xcode template _Prefix.pch rename woes
      • From: Jim Wrenholt <email@hidden>
    • Re: Custom Xcode template _Prefix.pch rename woes
      • From: Jim Wrenholt <email@hidden>
  • Prev by Date: Re: Xcode-users Digest, Vol 4, Issue 400
  • Next by Date: Re: Fixed: curses.h - undefined symbols
  • Previous by thread: Re: Xcode-users Digest, Vol 4, Issue 400
  • Next by thread: Re: Custom Xcode template _Prefix.pch rename woes
  • Index(es):
    • Date
    • Thread