Re: Info.plist preprocessing with <integer> values
Re: Info.plist preprocessing with <integer> values
- Subject: Re: Info.plist preprocessing with <integer> values
- From: "B.J. Buchalter" <email@hidden>
- Date: Tue, 06 Mar 2007 17:05:37 -0500
- Thread-topic: Info.plist preprocessing with <integer> values
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...
On 3/6/07 4:55 PM, "Isaac Wankerl" <email@hidden> wrote:
> I'm trying to have my Info.plist file preprocessed. I want my final
> output to be
>
> <key>Foo</key> <integer>2</integer>
>
> I have things set up so that my xcconfig file has
>
> FooValue = 2
>
> And the Info.plist has
>
> <key>Foo</key> <integer>${FooValue}</integer>
>
> but this gives me a build error.
>
> error: couldn't parse contents of
> '...path.../Preprocessed-Info.plist': XML parser error:
> Unknown character '$' (0x24) in <integer> on line 28
> Old-style plist parser error:
> Malformed data byte group at line 3; invalid hex
>
>
> If I change the plist to
>
> <key>Foo</key> <string>${FooValue}</string>
>
> everything is fine, but I would rather use <integer>. Is it possible
> to do that?
>
> Thanks,
> Isaac
> _______________________________________________
> 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
B.J. Buchalter
Metric Halo
5 Donovan Drive
Hopewell Junction, NY 12533 USA
tel +1 845 223-6112
fax +1 603 250-2451
_______________________________________________
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