简体   繁体   English

在iOS Swift中更新应用程序时通过CFBundleShortVersionString获取先前版本而不是最新版本

[英]getting previous version rather than latest version through CFBundleShortVersionString while app is updated in iOS swift

I am getting app version from given code 我正在从给定的代码获取应用程序版本

let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String

I have updated app from app store and, when app get the app version from above code app return preview version instead of latest version. 我已经从应用商店更新了应用,并且当应用从上述代码获取应用版本时,应用会返回预览版本,而不是最新版本。 why app app not give the latest version of app while app updated successfully from app store 从应用商店成功更新应用时,为什么应用未提供最新版本的应用

  • previous app version installed = 10.6.0 安装的先前应用程序版本= 10.6.0
  • and fetched version is 10.6.0 并且获取的版本是10.6.0
  • now update app 现在更新应用
  • after updated 更新后
  • current app version instaledl = 10.6.1 当前的应用程序版本instaledl = 10.6.1
  • and fetched version is 10.6.0 并且获取的版本是10.6.0

This problem automatically solved. 这个问题自动解决。 Means some time Appstore take extra time to reflect version in app while, build is already updated. 意味着Appstore需要花费一些时间来反映应用中的版本,而构建已经更新。

After one day app store show update option and when updated the app versioning problem became solved. 经过一天的应用商店显示更新选项,并在更新后解决了应用版本控制问题。 Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我的应用程序构建的旧版本而不是最新的 react native ios 构建 - Old version of my app builds rather than latest in react native ios build CFBundleShortVersionString返回错误的版本 - CFBundleShortVersionString Returning Wrong Version 将版本更改为Swift 1.2而不是Swift 2.1 - Changing version to Swift 1.2 rather than Swift 2.1 离子,ios,无法导入生成版本…CFBundleShortVersionString - ionic, ios, the build version can't be imported… CFBundleShortVersionString iOS - 提示用户更新到最新的应用版本 - iOS - Prompt User to Update to Latest App Version 如何使用Swift / iOS在App Store中获得最新应用程序版本的版本字符串属性的内容? - How can I get the content of the version string property of my latest app version available in the App Store using Swift/ iOS? iOS更新的应用程序版本 - 新的排行榜和成就 - iOS Updated App Version - New Leaderboards and Accomplishments 在 Boss 手机上获取最新版本的未发布应用 - Getting latest version of unreleased app on Boss phone 在iOS中使用Xcode上传更新的应用程序版本 - Upload an updated app version using Xcode in iOS 使用PlistBuddy获取应用程序版本返回“ CFBundleShortVersionString不存在” - Get App Version with PlistBuddy returns “CFBundleShortVersionString does not exist”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM