Я получаю эту ошибку на нашей машине devops, но не на моем собственном mac.
error: No signing certificate "iOS Distribution" found: No "iOS Distribution" signing certificate matching team ID "xxx" with a private key was found. (in target 'yy')
lane:
desc "Build the app and send it to Testflight for testing"
lane :beta do
UI.message("app_name: #{app_name}")
UI.message("app_identifier: #{app_identifier}")
UI.message("apple_id: #{apple_id}")
UI.message("team_id: #{team_id}")
UI.message("sku: #{sku}")
xcodeprojpath = "../ios/" + app_name + ".xcodeproj"
proj = Xcodeproj::Project.open("../" + xcodeprojpath)
proj.build_configurations.each do |item|
item.build_settings["DEVELOPMENT_TEAM"] = team_id
item.build_settings["PROVISIONING_PROFILE_SPECIFIER"] = match_ad_hoc_provisioning
item.build_settings["CODE_SIGN_IDENTITY[sdk=iphoneos*]"] = match_ad_hoc_signing
item.build_settings["SWIFT_VERSION"] = swift_version
end
proj.recreate_user_schemes
proj.save
begin
disable_automatic_code_signing
rescue => ex
UI.message("failed to disable automatic signing")
UI.error(ex)
end
unlock_keychain(
path: "login.keychain",
password: ENV["FASTLANE_KEYCHAIN"],
)
sigh(username: apple_id, adhoc: true, force: false, app_identifier: app_identifier, team_id: team_id)
gym(export_method: "ad-hoc")
end
даже после очистки цепочки для ключей она работает локально, но не в devops.