• 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
Re: Info.plist preprocessing with <integer> values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Info.plist preprocessing with <integer> values


  • Subject: Re: Info.plist preprocessing with <integer> values
  • From: "Shawn Erickson" <email@hidden>
  • Date: Tue, 6 Mar 2007 15:45:02 -0800

On 3/6/07, Shawn Erickson <email@hidden> wrote:
On 3/6/07, Isaac Wankerl <email@hidden> wrote:
> On 3/6/07, B.J. Buchalter <email@hidden> wrote:
> > The preprocessor replaces the token -- is is not variable replacement.
> >
> > So change it to
> >
> >     <key>Foo</key>    <integer>FooValue</integer>
> >
> > And it will work correctly.
> >
> > The string is not correct anyway, since the string would have been
> >
> >     <key>Foo</key>    <string>${2}</string>
> >
> > after preprocessing, which is not what you wanted...

The Info.plist preprocessor doesn't work like that.

With that said I am not sure why only <string> entries get the correct
substitution.

Humm maybe they do use the GCC preprocessor in addition to what was done before...

(from Xcode 2.3 release notes)

"Improved support for processing Info.plist files
Now Xcode correctly preprocesses a target's Info.plist even if it uses
build setting macros of the form $(X). Xcode runs the Info.plist
through the GCC preprocessor first, and then expands any build setting
macros in it. Finally, (if needed) a PkgInfo file is produced from the
preprocessed, macro-expanded version of the Info.plist. As before,
both the preprocessing and macro expansion steps can be skipped by
configuring the corresponding build settings in the target (or
project) inspector.

Note that many Xcode project templates include build settings in their
Info.plist files by default, so if you choose to disable build setting
expansion in the Info.plist file then you must edit the file to
replace those build settings with appropriate concrete values."

-Shawn
_______________________________________________
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: Info.plist preprocessing with <integer> values
      • From: "Isaac Wankerl" <email@hidden>
References: 
 >Info.plist preprocessing with <integer> values (From: "Isaac Wankerl" <email@hidden>)
 >Re: Info.plist preprocessing with <integer> values (From: "B.J. Buchalter" <email@hidden>)
 >Re: Info.plist preprocessing with <integer> values (From: "Isaac Wankerl" <email@hidden>)
 >Re: Info.plist preprocessing with <integer> values (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: [OT] Disk image creation
  • Next by Date: Re: [OT] Disk image creation
  • Previous by thread: Re: Info.plist preprocessing with <integer> values
  • Next by thread: Re: Info.plist preprocessing with <integer> values
  • Index(es):
    • Date
    • Thread