Ios Get App Version And Build Number
2 for getting build version you have to use a.
Ios get app version and build number. Step 2 open main storyboard and add two labels as shown below. Cfbundleversion infodictionary returns a dictionary constructed from the bundle s info plist file that contains information about the receiver. Nsstring version nsbundle mainbundle infodictionary objectforkey cfbundleshortversionstring.
Show activity on this post. The version and build number keys respectively specify the marketing and internal versions of your application. You can get the version and build numbers as follows.
Here is how you can get the current version number of the app. 1 for getting app version you have to use a. String let build bundle main object forinfodictionarykey.
In this post we will learn how to fetch and show the ios build and version number. Let version bundle main object forinfodictionarykey. Step 1 open xcode new project single view application let s name it showbuildandversion.
Agvtool is a command line tool that allows you to automatically increment these numbers to the next highest number or to a specific number.