• 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: Versioning via build settings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Versioning via build settings?


  • Subject: Re: Versioning via build settings?
  • From: Joachim <email@hidden>
  • Date: Wed, 21 Dec 2005 12:24:05 -0800

On 21-Dec-05, at 8:07 AM, Alastair Houghton wrote:

On 21 Dec 2005, at 07:17, Joachim wrote:

Dear fellow XCoders,

I'd like to semi-automate the versioning of my app. My app consists of more than one executable, so instead of editing several Info.plists directly, I'd like to set the info in one place only.

I've tried to implement it via XCode's 2.2 build settings in a number of ways, but none of the methods work. In all cases the relevant section of the Info.plists look like this:

<key>CFBundleShortVersionString</key>
<string>$(MY_VERS_NO)</string>
<key>CFBundleVersion</key>
<string>$(MY_BUILD_NO)</string>

I don't use that functionality myself, *but* I do notice that you are using parentheses (round brackets) rather than braces around the names of the things to be substituted. It's very easy to get caught out with this because {} and () look similar in some fonts, especially if you get aliasing with the parens at a particular size.

Anyway, it's worth trying braces {} rather than parens () as Xcode uses braces for other substitution and this has tripped me up more than once.

I tried both and it's my understanding that they're interchangeable. The whole idea came from watching Apple's excellent "WWDC Session 402: Adopting Xcode (Hands-On)" video on http://developer.apple.com/ transition/. In that video he uses parentheses, although the default Info.plist generated by XCode uses curly brackets.

Joachim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Versioning via build settings? (From: Joachim <email@hidden>)
 >Re: Versioning via build settings? (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: How to remove accents from characters (i.e. ñ --> n)
  • Next by Date: Re: Files larger than 2.9 gigs
  • Previous by thread: Re: Versioning via build settings?
  • Next by thread: Testing universal binary one the cheap
  • Index(es):
    • Date
    • Thread