Re: Info.plist preprocessing with <integer> values
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