• 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: Matt Neuburg <email@hidden>
  • Date: Thu, 24 Aug 2006 07:38:45 -0700
  • Thread-topic: Automate build numbers

On Wed, 23 Aug 2006 06:13:46 -0700, Jerry Krinock <email@hidden> said:
>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

I'm not sure where you are getting all those "setenv" statements from
(though they are very cool). Basically, the first statement in the build log
should show the info.plist preprocessing, followed by the processing of the
preprocessed plist (if you know what I mean):

> Preprocessing
> /Users/mattneub/builds/NotLight.build/Debug/NotLight.build/Preprocessed-Info.p
> list Info.plist
>
> cd /Users/mattneub/NotLight
>
> /usr/bin/gcc -E -P -x c -Wno-trigraphs -DMYVERSION=1.4 Info.plist -o
> /Users/mattneub/builds/NotLight.build/Debug/NotLight.build/Preprocessed-Info.p
> list
>
> Processing /Users/mattneub/builds/Debug/NotLight.app/Contents/Info.plist
> /Users/mattneub/builds/NotLight.build/Debug/NotLight.build/Preprocessed-Info.p
> list
>
> mkdir /Users/mattneub/builds/Debug/NotLight.app/Contents
>
> cd /Users/mattneub/NotLight
>
> com.apple.tools.info-plist-utility
> /Users/mattneub/builds/NotLight.build/Debug/NotLight.build/Preprocessed-Info.p
> list -genpkginfo /Users/mattneub/builds/Debug/NotLight.app/Contents/PkgInfo
> -expandbuildsettings -o
> /Users/mattneub/builds/Debug/NotLight.app/Contents/Info.plist

m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
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: Chris Espinosa <email@hidden>
    • Re: Automate build numbers
      • From: David Dunham <email@hidden>
  • Prev by Date: Re: Project compiles but won't run under xCode 3.0 - class lookup error
  • Next by Date: Re: Project compiles but won't run under xCode 3.0 - class lookup error
  • Previous by thread: RE: Automate build numbers
  • Next by thread: Re: Automate build numbers
  • Index(es):
    • Date
    • Thread