Add codesigning_identity parameter to gym

This commit is contained in:
Vlad Suhomlinov 2021-08-26 20:13:39 +03:00
parent 501ff89f28
commit 6a9edceae5
1 changed files with 7 additions and 0 deletions

View File

@ -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