Ensure the right version of Xcode is used

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.
You can either manually provide a specific version using version: or you make use of the .xcode-version file.

Supported platforms ios, mac
Author @JaviSoto, @KrauseFx

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