From b319b97522fed94a2efe8c24b2309baa7207d422 Mon Sep 17 00:00:00 2001 From: Alexander Rutsman Date: Tue, 12 Oct 2021 19:09:36 +0300 Subject: [PATCH] Added default xcode version --- xcode/commonFastfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 4e36946..c37d1ca 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -148,16 +148,19 @@ private_lane :buildArchive do |options| lane_name = options[:lane_name] configuration = options[:configuration] xcodeproj_path = options[:xcodeproj_path] + xcode_version = options[:xcodeVersion] default_xcode_version = sh("xcodebuild -version") # Xcode Build version .split(" ")[1] - xcode_version = options[:xcodeVersion] || default_xcode_version - if configuration != "AppStore" # AppStore uses xcconfig choosen in Xcode set_xcconfig_for_configuration_of_project(lane_name, configuration, xcodeproj_path) end - xcversion(version: xcode_version) + if xcode_version.nil? + xcversion(version: default_xcode_version) + else + xcversion(version: xcode_version) + end gym( clean: true,