Bundle versions string,short 和short bundle versionn的区别

使用agvtool 自动化操作version and Build Numbers 的方法 - 移动开发当前位置:& &&&使用agvtool 自动化操作version and Build Numbers 使用agvtool 自动化操作version and Build Numbers 的方法&&网友分享于:&&浏览:0次使用agvtool 自动化操作version and Build Numbers 的步骤1.Build Numbers 存储在应用程序的Info.plist中,CFBundleVersion&(Bundle
2.先在Xcode project中设置agvtool工具可用,target -&Build Settings-&combined-&Versioning
& 2.1&Set&Current
Project Version&to a value of your choosing.
& 2.2&Set&Versioning
System&to&Apple
3.设置你的version and build numbers.保证&CFBundleVersion&(Bundle
version) and&CFBundleShortVersionString&(Bundle
versions string, short) keys存在你的Info.plist中
& &3.1 target-&Info-&设置Bundle versions string,short为1.0 Bundle version为1.0
4.用命令行来更新版本号
& &4.1 打开terminal application ,cd 工程直接路径 例如工程名为AutoCellDemo 则cd
&&/Users/itdept/Desktop/practice/AutoCellDemo
& &4.2 更新version number 到2.0 则输入命令:$xcrun agvtool new-marketing-version
5.更新Build Number
& 5.1 自动增加你的Build Number 执行的命令:$xcrun agvtool next-version -all
& 5.2 给你的应用程序设置一个Build number,执行的命令是 $xcrun agvtool new-version
-all 2.6.9
6.查看Version Numbers
& 6.1查看当前的Version Number 执行:$xcrun agvtool what-marketing-version
& 6.2 查看当前的Build Number 执行:$xcrun agvtool what-version
12345678910
12345678910
12345678910 上一篇:下一篇:文章评论相关解决方案 1234567891011 Copyright & &&版权所有TARGET里的Version和Build的区别是什么_百度知道Version和Build的区别
下载简书移动应用
写了54204字,被180人关注,获得了194个喜欢
Version和Build的区别
CFBundleVersion,标识(发布或未发布)的内部版本号。这是一个单调增加的字符串,包括一个或多个时期分隔的整数。CFBundleShortVersionString
标识应用程序的发布版本号。该版本的版本号是三个时期分隔的整数组成的字符串。第一个整数代表重大修改的版本,如实现新的功能或重大变化的修订。第二个整数表示的修订,实现较突出的特点。第三个整数代表维护版本。该键的值不同于“CFBundleVersion”标识。版本号的管理是一个谨慎的事情,希望各位开发者了解其中的意义。比较小白,更新应用的时候遇到版本号CFBundleShortVersionString命名的错误,导致无法更新,后来看了文档研究下发现是这样,希望给不了解的人以启示;
图片里的 Version 对应的就是CFBundleShortVersionString (发布版本号 如当前上架版本为1.1.0
之后你更新的时候可以改为1.1.1)Build 对应的是 CFBundleVersion (内部标识,用以记录开发版本的,每次更新的时候都需要比上一次高 )当前运行版本信息可以通过info.plist文件中的bundle version中获取:获取当前的 version:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]或[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];获取当前 build号:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
选择支付方式:1598人阅读
iphone(527)
iPhone常见问题(270)
Bundle version is the internal version number of your app.
Short version string is the publically visible version of your app.
So for example, if you iterate your version number every time you do an internal build for your beta testers (or whatever), your bundle version might be 2.0.0.12345b7, but you don't want the public to see that, so you set your short version string to 2.0.
Short version string seems to be optional, so if you leave it blank then the bundle version is what people will see (i.e. that's what will be displayed on the App Store).
Your short version string can't have more than 3 parts, e.g. 2.0.1 is okay, but 2.0.0.1 isn't. If you don't have a short version string, then the same rules apply to your bundle ID (basically the public app version has this restriction and the private app version
iTunes Connect
This is the version number shown in the App S This must be a pure version number like1.2.3
Bundle Version (CFBundleVersion)
This doesn't need to be a pure version number. This can be something like&12345&or&1.2.3
(Build 12345AB). This is shown in the About window for Mac OS X apps for example and is often more a &Build Number& than a &Version Number&.
Bundle Version String (CFBundleShortVersionString)&This value is used as the &real& version number. This&must&be
the same string as used for the version in&iTunes Connect.
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:1869461次
积分:19178
积分:19178
排名:第296名
原创:179篇
转载:864篇
译文:44篇
评论:200条
(1)(1)(1)(1)(2)(5)(1)(1)(4)(12)(15)(19)(9)(3)(9)(3)(2)(7)(5)(1)(3)(14)(24)(20)(28)(14)(21)(19)(36)(26)(18)(21)(35)(49)(23)(60)(38)(33)(51)(49)(58)(44)(67)(31)(44)(70)(90)(1)

我要回帖

更多关于 bundleversioncode 的文章

 

随机推荐