码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-02-12 16:16:20      阅读:385      评论:0      收藏:0      [点我收藏+]

标签:

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

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

标签:

原文地址:http://blog.csdn.net/u013885092/article/details/43762779

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!