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

Re: build numbers


  • Subject: Re: build numbers
  • From: Shawn Erickson <email@hidden>
  • Date: Wed, 15 Sep 2004 12:31:43 -0700


On Sep 15, 2004, at 12:02 PM, Shawn Erickson wrote:


On Sep 15, 2004, at 4:45 AM, Christian Schneider wrote:

Hi list,

is it possible to have an automatically incremented build number that is
accessible from within a Cocoa programme? I'd like to output that number
to a log file every time my app starts.


I looked at agvtool and it seems that it might be usable but I don't
know whether I have access to the version number. Furthermore, I added
"agvtool next-version" to a custom shell script build phase and now
XCode complains that the project file has changed every time a compile
my app.

man agvtool ?

For example in a simple script I use build what I package for distribution (run it from the directory containing the xcode project).


...blah..
/Developer/Tools/agvtool bump -all

xcodebuild clean -alltargets
xcodebuild install -alltargets -buildstyle Deployment
...blah..

-Shawn

_______________________________________________
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


  • Follow-Ups:
    • Re: build numbers
      • From: Christian Schneider <email@hidden>
References: 
 >build numbers (From: Christian Schneider <email@hidden>)
 >Re: build numbers (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Enabling the Print… menu item for an NSView
  • Next by Date: Re: NSControlGlyphs generation
  • Previous by thread: Re: build numbers
  • Next by thread: Re: build numbers
  • Index(es):
    • Date
    • Thread