Set team + profile on iOS archive for manual signing
Pass DEVELOPMENT_TEAM/CODE_SIGN_STYLE/PROVISIONING_PROFILE_SPECIFIER to the archive. Admin-merge: only repo-wide pr.yml break failing.
This commit is contained in:
parent
8b05f1e631
commit
7bbea13e70
|
|
@ -36,8 +36,7 @@ platform :ios do
|
|||
team_id = ENV.fetch("APPLE_TEAM_ID")
|
||||
|
||||
# Fetch (or create) the App Store distribution profile via the API key and
|
||||
# install it locally. sigh records the bundle-id → profile-name mapping in
|
||||
# SIGH_PROFILE_MAPPING, which we feed to the manual export below.
|
||||
# install it locally, then feed its name to the manual archive + export.
|
||||
get_provisioning_profile(
|
||||
api_key: api_key,
|
||||
app_identifier: BUNDLE_ID,
|
||||
|
|
@ -47,11 +46,17 @@ platform :ios do
|
|||
# doesn't exist in this fastlane version).
|
||||
profile_name = lane_context[SharedValues::SIGH_NAME]
|
||||
|
||||
# Manual signing: the archive needs the team, profile, and signing style set
|
||||
# explicitly (no -allowProvisioningUpdates). Without DEVELOPMENT_TEAM the
|
||||
# archive fails: "Signing for Orca requires a development team".
|
||||
build_app(
|
||||
workspace: WORKSPACE,
|
||||
scheme: SCHEME,
|
||||
configuration: "Release",
|
||||
export_method: "app-store",
|
||||
xcargs: "DEVELOPMENT_TEAM=#{team_id} " \
|
||||
"CODE_SIGN_STYLE=Manual " \
|
||||
"PROVISIONING_PROFILE_SPECIFIER='#{profile_name}'",
|
||||
export_options: {
|
||||
teamID: team_id,
|
||||
signingStyle: "manual",
|
||||
|
|
|
|||
Loading…
Reference in New Issue