• 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: Creating an automatic build number with PBX?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating an automatic build number with PBX?


  • Subject: Re: Creating an automatic build number with PBX?
  • From: Pierre-Olivier Latour <email@hidden>
  • Date: Wed, 24 Jul 2002 01:51:47 +0200

> Look at /Developer/Tools/agvtool (stands for Apple Generic Versioning).
> Documentation for it can be found at
> /Developer/Documentation/ReleaseNotes/PBBuildSettings.html.

Thanks, that helps! But that does not solve completely my problem
apparently. I need to have a number that is incremented each time I build
the projet.

I created a shell script phase build file that simply does this:
"/Developer/Tools/agvtool bump"

Unfortunately, PBX complains that the project was touched externaly after
each build, and it put PBX in an unstable state: if I attempt to close the
project while asking to force save, it crashes.

Any idea?

Regarding the version numbers, agvtool generate a _vers.c file with 2
variables (if my project is called ("test"):
const unsigned char testVersionString[] = "@(#)PROGRAM:test
PROJECT:test-1 DEVELOPER:pol BUILT:" __DATE__ " " __TIME__ "\n";
const double testVersionNumber = (double)1;

Any way I can set these variables to be called: "versionString" and
"versionNumber" instead of having project related names?

Last question: If I change the build settings "CURRENT_PROJECT_VERSION" in
PBX, I have to clean the project the build it so that the change is taken
into account by agvtool. Otherwise, the _vers.c file is not updated. Is this
normal?

Thanks!

_____________________________________________________________

Pierre-Olivier Latour email@hidden
Lausanne, Switzerland http://www.pol-online.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Creating an automatic build number with PBX? (From: Scott Tooker <email@hidden>)

  • Prev by Date: arrayWithObjects question
  • Next by Date: Error with most basic method
  • Previous by thread: Re: Creating an automatic build number with PBX?
  • Next by thread: Text Color in custom NSFormatter
  • Index(es):
    • Date
    • Thread