We don't increment version number in our builds because that would trigger a TF review. So instead we leave it as the same version and xcode automatically increment the build number instead so it's 0.1 (5).
However, in our code we also check for version number to show popups unique to each release. Like this:
func getCurrentAppVersion() -> String {
let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"]
let version = (appVersion as! String)
return version
}
We then save that to userdefaults and check it on launch.
Is there a way to make that work with the auto incremented number?