agvtool: Automating iOS Build and Version Numbers

Shashikant Jagtap
Oct 29, 2017 · 5 min read
Image for post
Image for post

Version and Build Numbers

Version Number

Build Number

agvtool

$ xcrun agvtool
$ xcrun -find agvtool
$ man agvtool

Enable agvtool

Image for post
Image for post

Disable/Enable Source Control (CVS, SVN)

$ defaults write agvtool SVNEnabled NO
$ defaults write agvtool CVSEnabled NO

Command Line agvtool

View Existing Values

$ xcrun agvtool what-marketing-version
$ xcrun agvtool what-version
Image for post
Image for post

Update to next Values

$ xcrun agvtool new-marketing-version 2.0
$ xcrun agvtool next-version -all
Image for post
Image for post
$ xcrun agvtool new-version -all 3.2

What are Other Options

increment_version_number(
bump_type: "major"
)
increment_build_number(
build_number: "5"
)

Conclusion

Image for post
Image for post
XCTEQ Limited: Mobile DevOps, CI/CD and Automation

XCBlog

P.S:

Shashikant Jagtap

Written by

All the posts published on this channel before I joined Apple. Thanks for being a reader of XCBlog. Web: shashikantjatap.net, xcteq.co.uk

XCBlog

XCBlog

P.S: All the posts from this publication are published before author Shashikant Jagtap joined Apple. Thank you so much for being a reader of XCBlog. Tech Blog about DevOps, CI/CD for  Platforms. Xcode Server, XCTest, SwiftPM, Server Side Swift, XCUITest etc.

Shashikant Jagtap

Written by

All the posts published on this channel before I joined Apple. Thanks for being a reader of XCBlog. Web: shashikantjatap.net, xcteq.co.uk

XCBlog

XCBlog

P.S: All the posts from this publication are published before author Shashikant Jagtap joined Apple. Thank you so much for being a reader of XCBlog. Tech Blog about DevOps, CI/CD for  Platforms. Xcode Server, XCTest, SwiftPM, Server Side Swift, XCUITest etc.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store