![]() This action is a wrapper around the xcodes CLI, an application I have used for a very long time to manage Xcode versions on my machine. The alternative to using xcode_select now that both xcode-install and xcversion are depecrated, is the xcodes action. ![]() before_all do xcode_select( "/Applications/Xcode-14.1.app" ) endĪ big downside to this approach is that, since xcode_select requires a full path to the Xcode application, you need to have a strict naming convention for all Xcode installations across all your CI runners.Įven if you don't use self-hosted runners, if you want your lanes to work locally, you need to ensure that the path to your local Xcode installation matches that of the CI runner. Applications/Xcode_14.1.app) and it uses this path to set the DEVELOPER_DIR environment variable.įastlane/Fastfile # Set the version before every lane. The action requires the full path to an Xcode application (e.g. The xcode_select action is the simplest and less intrusive way of selecting an Xcode version. Selecting a version of Xcode at the beginning of Fastlane's execution can be a very useful way of making your workflows as portable and reusable as possible for you and your team.įastlane usually runs in a CI environment, which means that you want to make sure that selecting an Xcode version does not meddle with the system's settings and does not require any manual intervention, such as asking for sudo permissions.īoth the existing xcode_select and the new xcodes actions are able to achieve this by setting the DEVELOPER_DIR environment variable to the path of an Xcode application.Ĭontrary to what running xcode-select -s does, setting the DEVELOPER_DIR environment variable does not require root permissions and only affects the current shell session. This post will explore the current state of Xcode version management on CI using Fastlane, and will explain how the new xcodes action works.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |