AGVTool new-version and some version do not match

When I do this:

agvtool new-version -all 99 

It updates my Info.plist file. However, if I do this:

 agvtool what-version 

or

 agvtool next-version 

I get this error:

 There does not seem to be a CURRENT_PROJECT_VERSION key set for this project. Add this key to your target expert build settings. 

Why is this not appropriate. Do I need to use the plist command line tool to get the current version of my application. Curiously, agvtool what-marketing-version works fine. Ironically, agvtool does not seem to have the version itself; -)

+7
source share
1 answer

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.

  • Enable 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.

  1. 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.
+6
source

All Articles