This link worked for me. Technical Q & A QA1827 Automatic version and construction of numbers using agvtool
From the following link. This help will help solve the problem when I started using agvtool.
Go to the Build Settings panel of your goal, and then update it for all build configurations.
Set the current version of the project to the value of your choice. I installed for me 1
Install version control on Apple Generic.
By default, Xcode does not use a version control system. Installing a version control system on Apple Generic ensures that Xcode will include in the project all the information about the updated version of agvtool.
- Configure version numbers and builds.
agvtool is looking for your Info.plist applications for your version and build number. He updates them, if they exist, and does nothing, otherwise. Make sure in your Info.plist
there are keys CFBundleVersion (Bundle version) and CFBundleShortVersionString (strings, short) versions of Bundle.
Ray hunter
source share