get_version_number

Get the version number of your project

This action will return the current version number set on your project. You first have to set up your Xcode project, if you haven't done it already: https://developer.apple.com/library/ios/qa/qa1827/_index.html

get_version_number
Supported platforms ios, mac
Author @Liquidsoul

1 Example

version = get_version_number(xcodeproj: "Project.xcodeproj")

Parameters

Key Description
xcodeproj optional, you must specify the path to your main Xcode project if it is not in the project root directory
scheme [DEPRECATED!] true - Specify a specific scheme if you have multiple per project, optional.
This parameter is deprecated and will be removed in a future release.
Please use the 'target' parameter instead. The behavior of this parameter
is currently undefined if your scheme name doesn't match your target name
target Specify a specific target if you have multiple per project, optional


To show the documentation in your terminal, run

fastlane action get_version_number

View source code


Back to actions