• 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
TemplateInfo.plist MacroExpand Bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TemplateInfo.plist MacroExpand Bug


  • Subject: TemplateInfo.plist MacroExpand Bug
  • From: Sean Todd <email@hidden>
  • Date: Thu, 8 May 2008 12:06:41 -0500

I am using Xcode 3.0 and am trying to setup a custom project template for Core Data Doc-based App with Spotlight importer. Everything is working well except for macro expansion of the MyDocument.nib sub- files. My TemplateInfo.plist file contains the following:

FilesToRename = {
"CocoaApp_Prefix.pch" = "«PROJECTNAMEASIDENTIFIER»_Prefix.pch";
"MyDocument.h" = "«PROJECTNAMEASIDENTIFIER»Document.h";
"MyDocument.m" = "«PROJECTNAMEASIDENTIFIER»Document.m";
"MyDocument.xcdatamodel" = "«PROJECTNAMEASIDENTIFIER»Document.xcdatamodel";
"English.lproj/MyDocument.nib" = "English.lproj/«PROJECTNAMEASIDENTIFIER»Document.nib";
"AppleScriptInfo.sdef" = "«PROJECTNAMEASIDENTIFIER».sdef";
};
FilesToMacroExpand = (
"«PROJECTNAMEASIDENTIFIER»_Prefix.pch",
"Info.plist",
"English.lproj/InfoPlist.strings",
"English.lproj/MainMenu.nib/keyedobjects.nib",
"English.lproj/«PROJECTNAMEASIDENTIFIER»Document.nib/classes.nib",
"English.lproj/«PROJECTNAMEASIDENTIFIER»Document.nib/ keyedobjects.nib",
"«PROJECTNAMEASIDENTIFIER»Document.h",
"«PROJECTNAMEASIDENTIFIER»Document.m",
"main.m",
"Importer/main.c",
"Importer/GetMetadataForFile.c",
"Importer/Importer-Info.plist",
"«PROJECTNAMEASIDENTIFIER».sdef",
);


The renaming works and all of the macro expansion occurs except for:

"English.lproj/«PROJECTNAMEASIDENTIFIER»Document.nib/classes.nib",
"English.lproj/«PROJECTNAMEASIDENTIFIER»Document.nib/ keyedobjects.nib",


These 2 files each have one string item to be expanded: «PROJECTNAMEASIDENTIFIER»Document. Since macro expansion works for the keyedobjects.nib file in the MainMenu.nib package, there should be no reason why it wouldn't work with the document nib. I have checked that the file encodings are all correct.

Has anyone else seen this? Is there some undocumented limitation to the FilesToMacroExpand functionality? Or, is this a bug?

Thanks

_______________________________________________
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


  • Prev by Date: re: Run Script Build Phase and Copy Files Build Phase
  • Next by Date: Re: Xcode eats 100% CPU and more while typing
  • Previous by thread: Re: multiple crt1.o link problems
  • Next by thread: Re: Xcode eats 100% CPU and more while typing
  • Index(es):
    • Date
    • Thread