How to get CFBundleShortVersionString?

Hi,

How can i get/read the CFBundleShortVersionString from inside the app? 

The system.getInfo( “appVersionString” ) returns the CFBundleVersion String (the 2017.11.121111 for example). I want to get the version string I enter in the build dialog. Any ideas?

Thanks,

Follow up: is it even possible to retrieve that info with corona? or do i have to use corona native to do so?

I don’t know of a way to get that value through software. Native builds would not have access to it either.  Native builds would have you set that value in Xcode’s setup screen.

What is the use case for needing this in your app?

Rob

@rob, I am a bit old school. I have an about dialog in my app in which i display the app version among other info. I used to set CFBundleVersion manually in build.settings but got tired of doing it at every release. So I was hoping to just set the version in the build dialog and retrieve that string in my app. Anyway, thanks for your help.

Luay

Follow up: is it even possible to retrieve that info with corona? or do i have to use corona native to do so?

I don’t know of a way to get that value through software. Native builds would not have access to it either.  Native builds would have you set that value in Xcode’s setup screen.

What is the use case for needing this in your app?

Rob

@rob, I am a bit old school. I have an about dialog in my app in which i display the app version among other info. I used to set CFBundleVersion manually in build.settings but got tired of doing it at every release. So I was hoping to just set the version in the build dialog and retrieve that string in my app. Anyway, thanks for your help.

Luay