Select an Xcode to use by version specifier

Finds and selects a version of an installed Xcode that best matches the provided Gem::Version requirement specifier

Supported platforms ios, mac
Author @oysta

2 Examples

xcversion(version: "8.1") # Selects Xcode 8.1.0
xcversion(version: "~> 8.1.0") # Selects the latest installed version from the 8.1.x set


Key Description Default
version The version of Xcode to select specified as a Gem::Version requirement string (e.g. '~> 7.1.0')

* = default value is dependent on the user's system

To show the documentation in your terminal, run

fastlane action xcversion

View source code

Back to actions