使用agvtool 自动化操作version and Build Numbers 的步骤

1.Build Numbers 存储在应用程序的Info.plist中,CFBundleVersion (Bundle
version
).

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
Generic
.

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
2.0

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

时间: 2024-08-19 06:54:29

使用agvtool 自动化操作version and Build Numbers 的步骤的相关文章

splinter python浏览器自动化操作,模拟浏览器的行为

Splinter可以非常棒的模拟浏览器的行为,Splinter提供了丰富的API,可以获取页面的信息判断当前的行为所产生的结果 最近在研究网站自动登录的问题,涉及到需要实现浏览器自动化操作,网上有不少介绍,例如使用pamie,但是只是支持IE,而且项目也较久没有更新了.还 有就是利用selenium,可支持多种浏览器.网上资料比较多.经过比较,我选择了Splinter模块,因为利用Splinter开发浏览器自动化操 作,编写代码比较简单. 一.Splinter的安装 Splinter的使用必修依

Atitit.web的自动化操作与信息抓取 attilax总结

Atitit.web的自动化操作与信息抓取 attilax总结 1. Web操作自动化工具,可以简单的划分为2大派系: 1.录制回放 2.手工编写0 U' z; D! s2 d/ Q! ^1 2. 常用的软件1 2.1. swt (ie com)  ,nativeswing2 2.2. 基于 selenium2 2.3. Imacro for firefox插件2 2.4. Zenno Poster2 2.5. Ubot在Zenno Poster出来以前应该是最火爆的Web自动化工具(BHW最常

Exchange Server and Update Rollup Build Numbers

原文链接https://social.technet.microsoft.com/wiki/contents/articles/240.exchange-server-and-update-rollup-build-numbers.aspx Exchange Server Release dates Product name Build number Date Microsoft Exchange Server 2003 6.5.6944 9/28/2003 Microsoft Exchange

“Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift

使用cocopod导入第三方swift包后,编译报以下错误: The "Swift Language Version" (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor. 解决方法如下:(上一次没有注意到图片没有传上来,我说咋有人对我倒手指) 选择一

【自动部署】服务器自动化操作 RunDeck

RunDeck 是用 Java/Grails 写的开源工具,帮助用户在数据中心或者云环境中自动化各种操作和流程.通过命令行或者web界面,用户可以对任意数量的服务器进行操作,大大降低了对服务器自动化的门槛. RunDeck的作用: 在浏览器中执行服务器上任何非交互命令,比如ps, /etc/init.d/xxx restart,注意ssh之类的要在执行中输入密码的肯定不支持 对接服务器上的一键运维脚本,变成一个Job, 执行时只要点击按钮Run 自动记录命令操作记录和输出. 预览一下官网的几张图

用zabbix生成awstats图表以及通过Python调zabbix API自动化操作

awstats作为一款日志分析软件,功能不错,但是界面过于简单,也没有图表功能,这里我采取了一种变通的方法,将awstats的分析结果(pv.hits(文件数).bandwidth.visits(独立ip))添加到zabbix,并通过zabbix生成趋势图表. 在前两篇文章中,我们队awstats的使用及其工作方式进行了简明扼要的介绍:awstats对每个站点进行分析之后,会生成一个"awstats012016.txt"格式的"数据库"文件:awstats的展示页面

iOS 代码实现获得应用的版本号(Version/Build)

[1]概念 iOS的版本号,一个叫做Version,一个叫做Build,这两个值都可以在Xcode 中选中target,点击“Summary”后看到. Version在plist文件中的key是“CFBundleShortVersionString”,和AppStore上的版本号保持一致,Build在plist中的key是“CFBundleVersion”,代表build的版本号,该值每次build之后都应该增加1.这两个值都可以在程序中通过下面的代码获得: [[[NSBundle mainBu

iOS 版本号Version和Build的区别

一个version,一个build,都是设置版本的地方,有什么区别呢? 在ios中(Android等工程中也一样),有两种version,一种是 CFBundleVersion ("Bundle Version"),也就是我们看到的version,另一种是CFBundleShortVersionString ("Bundle version string, short"),也就是我们看到的Build. 普通情况下,我们只使用version即可,设置为"1.

获得Version和Build版本号

// Version [[[NSBundle mainBundle] infoDictionary] valueForKey:@"CFBundleShortVersionString"]; // Build [[[NSBundle mainBundle] infoDictionary] valueForKey:@"CFBundleVersion"];