• 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: XCode 2.1 Preprocessing Info.plist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: XCode 2.1 Preprocessing Info.plist (From: Carbon <email@hidden>)
 >Re: XCode 2.1 Preprocessing Info.plist (From: Tom Saxton <email@hidden>)

  • Prev by Date: Re: Distributed builds on headless XServe
  • Next by Date: huge __LINKEDIT section
  • Previous by thread: Re: XCode 2.1 Preprocessing Info.plist
  • Next by thread: Re: XCode 2.1 Preprocessing Info.plist
  • Index(es):
    • Date
    • Thread