• 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: Automate build numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automate build numbers


  • Subject: Re: Automate build numbers
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 23 Aug 2006 06:13:46 -0700
  • Thread-topic: Automate build numbers

on 06/08/19 10:09, Matt Neuburg at email@hidden wrote:

> One nice thing is that it is now possible to preprocess the info.plist, so
> that it takes values from the build environment. I now have e.g.
>
>     <key>CFBundleVersion</key>
>     <string>MYVERSION</string>
>
> where MYVERSION is set under INFOPLIST_PREPROCESSOR_DEFINITIONS. This has
> made my life a lot easier than it used to be. m.

It looks so simple.  But it doesn't work for me.  I'm using Xcode 2.3.

In my Info.plist, I set:
    <key>CFBundleShortVersionString</key>
    <string>RELEASE_VERSION</string>
    ...
    <key>CFBundleVersion</key>
    <string>RELEASE_VERSION</string>

In my Target Build Settings, I do as you and the docs say, setting
RELEASE_VERSION=3.10.

In my Build Log, I can see that my Target Build Settings are as expected:

    setenv INFOPLIST_EXPAND_BUILD_SETTINGS YES
    ...
    setenv INFOPLIST_PREPROCESS YES
    setenv INFOPLIST_PREPROCESSOR_DEFINITIONS RELEASE_VERSION=3.10

But it "just doesn't work" for me:

Expected Result in built Info.plist: version should be 3.10
Actual Result in built Info.plist:   version is RELEASE_VERSION

What stupid thing did I do wrong?

Thanks,

Jerry


 _______________________________________________
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

  • Follow-Ups:
    • RE: Automate build numbers
      • From: "Lyndsey Ferguson" <email@hidden>
References: 
 >Re: Automate build numbers (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: arrgh! include files not found
  • Next by Date: RE: Automate build numbers
  • Previous by thread: Re: Automate build numbers
  • Next by thread: RE: Automate build numbers
  • Index(es):
    • Date
    • Thread