ensure_xcode_version¶
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 usingversion:
or you make use of the.xcode-version
file.
ensure_xcode_version | |
---|---|
Supported platforms | ios, mac |
Author | @JaviSoto, @KrauseFx |
1 Example¶
ensure_xcode_version(version: "7.2")
Parameters¶
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