Re: XCode 2.1 Preprocessing Info.plist
Re: XCode 2.1 Preprocessing Info.plist
- Subject: Re: XCode 2.1 Preprocessing Info.plist
- From: Greg Hurrell <email@hidden>
- Date: Wed, 20 Jul 2005 11:49:56 +0200
The other problem is if you have localized InfoPlist.strings files
they also won't get preprocessed so you'll still have to edit your
version number in multiple places.
I filed a bug report/enhancement request about this: rdar://4150277/
Cheers,
Greg
El 20/07/2005, a las 2:54, Tom Saxton escribió:
I'm totally digging preprocessing the Info.plist, but the OCD is
kicking in so I'd like to only have one place where I set the version
number. The problem is that the C files want the version number in a
quoted string and the Info.plist wants it not in a string.
In the Info.plist I have:
<key>CFBundleVersion</key>
<string>kVersNumRaw</string>
So I have to do something like this:
#define kVersNumRaw 1.20a2
#define kVersNumStr "1.20a2"
I've tried several things like:
#define kVersNumRaw 1.20a2
#define Quote(s) "s"
#define kVersNumStr Quote(kVersNumRaw)
I tried lots of other wacky tricks using the ## operator, etc. No joy.
Does someone know a clever trick that will turn an unquoted thing into
a quoted string, or vice versa?
--
Tom Saxton
email@hidden
_______________________________________________
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
_______________________________________________
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