From 3c46515b6e89c81009587c3f92bae288e772ee03 Mon Sep 17 00:00:00 2001 From: Nora Trapp Date: Thu, 3 Jun 2021 09:00:25 -0700 Subject: [PATCH] Allow setting xcode version in fastfile --- Gemfile | 1 + Gemfile.lock | 4 ++++ fastlane/Fastfile | 2 ++ 3 files changed, 7 insertions(+) diff --git a/Gemfile b/Gemfile index 4c5a093cd3..91bdbd7d3f 100644 --- a/Gemfile +++ b/Gemfile @@ -5,3 +5,4 @@ gem 'fastlane' gem 'anbt-sql-formatter' # The current head of cocoapods-binary drops acknowledgements gem 'cocoapods-binary', git: 'https://github.com/signalapp/cocoapods-binary.git', branch: 'jrose/acknowledgements' +gem 'xcode-install' diff --git a/Gemfile.lock b/Gemfile.lock index 8555d4798c..5883a6820a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -260,6 +260,9 @@ GEM unicode-display_width (1.7.0) webrick (1.7.0) word_wrap (1.0.0) + xcode-install (2.7.0) + claide (>= 0.9.1, < 1.1.0) + fastlane (>= 2.1.0, < 3.0.0) xcodeproj (1.19.0) CFPropertyList (>= 2.3.3, < 4.0) atomos (~> 0.1.3) @@ -279,6 +282,7 @@ DEPENDENCIES cocoapods cocoapods-binary! fastlane + xcode-install BUNDLED WITH 1.17.2 diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 9134cf6dad..dacdc4a5a1 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -17,6 +17,8 @@ default_platform(:ios) desc 'Build, Archive, and Upload to ASC' lane :release do |options| + xcversion(version: '12.5') + app_identifier = ENV['APP_IDENTIFIER'] scheme = ENV['SCHEME'] configuration = 'App Store Release'