From 7bbea13e70bd1b736b2b58ae6878b3fc5aabe0be Mon Sep 17 00:00:00 2001 From: Jinwoo Hong <73622457+Jinwoo-H@users.noreply.github.com> Date: Tue, 16 Jun 2026 00:24:27 -0700 Subject: [PATCH] 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. --- mobile/fastlane/Fastfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mobile/fastlane/Fastfile b/mobile/fastlane/Fastfile index 7d7aebc6ee7..148f2e1c9bd 100644 --- a/mobile/fastlane/Fastfile +++ b/mobile/fastlane/Fastfile @@ -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",