Ensure the selected Xcode version with xcode-select matches a value

If building your app requires a specific version of Xcode, you can invoke this command before using gym. For example, to ensure that a beta version of Xcode is not accidentally selected to build, which would make uploading to TestFlight fail.

Supported platforms ios, mac
Author @JaviSoto

1 Example

ensure_xcode_version(version: "7.2")


Key Description Default
version Xcode version to verify that is selected

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

To show the documentation in your terminal, run

fastlane action ensure_xcode_version

View source code

Back to actions