Capturing the version in code

Is there any way to set the app version in code, e.g. a config file? Every time an app is built the version is 1.0 by default so it must be updated for later revisions. Ideally I would like to set the version in code and check it into SCM. Then the dialog would reflect that config.

yes, you would set that in the build.settings file

cheers,

?:)

How would you set it? I've tried setting CFBundleVersion in the iphone section and also:

build =
{
custom = "a1234",
}

as shown above but neither seem to change the 1.0 figure in the Build for iOS dialog.

views:1464 update:2011/11/10 9:30:09
corona forums © 2003-2011