Re: XCode 2.1 Preprocessing Info.plist
Re: XCode 2.1 Preprocessing Info.plist
- Subject: Re: XCode 2.1 Preprocessing Info.plist
- From: Olivier Tristan <email@hidden>
- Date: Wed, 20 Jul 2005 10:26:37 +0200
Tom Saxton wrote:
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?
Got the same problem. So far I didn't find any answer.
By the way, if you're using gcc 3, you don't have the problem with
#pragma GCC set_debug_pwd wich is inserted in the first line ?
I still can't use this functionnality because of this and I had no
answer on the point so far.
Thanks,
--
Olivier Tristan
Ultimate Sound Bank
_______________________________________________
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