From 6a9edceae5a1419681b283e2dbd3efeeb5624bf2 Mon Sep 17 00:00:00 2001 From: Vlad Suhomlinov <> Date: Thu, 26 Aug 2021 20:13:39 +0300 Subject: [PATCH] Add codesigning_identity parameter to gym --- xcode/commonFastfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index a3147d3..dc84a77 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -153,6 +153,12 @@ private_lane :buildArchive do |options| set_xcconfig_for_configuration_of_project(lane_name, configuration, xcodeproj_path) end + if configuration == "Debug" + codesigning_identity_name = "iPhone Developer" + else + codesigning_identity_name = "iPhone Distribution" + end + gym( clean: true, workspace: options[:workspace], @@ -166,6 +172,7 @@ private_lane :buildArchive do |options| skip_package_ipa: options[:skip_package_ipa], include_symbols: options[:include_symbols] || false, include_bitcode: options[:compileBitcode] || false, + codesigning_identity: codesigning_identity_name, ) end