Set code_sign_identity in update_code_signing_settings

Without explicit identity, xcodebuild defaults to "iOS Development"
which doesn't exist on CI. Set "Apple Distribution" for App Store
builds and "Developer ID Application" for notarized builds.
This commit is contained in:
Arkadiusz Fal
2026-02-13 21:37:02 +01:00
parent 895aca267a
commit cd096e6235

View File

@@ -115,6 +115,7 @@ platform :ios do
use_automatic_signing: false, use_automatic_signing: false,
path: XCODEPROJ, path: XCODEPROJ,
team_id: TEAM_ID, team_id: TEAM_ID,
code_sign_identity: "Apple Distribution",
profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER}", profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER}",
targets: [SCHEME] targets: [SCHEME]
) )
@@ -123,6 +124,7 @@ platform :ios do
use_automatic_signing: false, use_automatic_signing: false,
path: XCODEPROJ, path: XCODEPROJ,
team_id: TEAM_ID, team_id: TEAM_ID,
code_sign_identity: "Apple Distribution",
profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER}.ShareExtension", profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER}.ShareExtension",
targets: ["YatteeShareExtension"] targets: ["YatteeShareExtension"]
) )
@@ -184,6 +186,7 @@ platform :tvos do
use_automatic_signing: false, use_automatic_signing: false,
path: XCODEPROJ, path: XCODEPROJ,
team_id: TEAM_ID, team_id: TEAM_ID,
code_sign_identity: "Apple Distribution",
profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER} tvos", profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER} tvos",
targets: [SCHEME] targets: [SCHEME]
) )
@@ -246,6 +249,7 @@ platform :mac do
use_automatic_signing: false, use_automatic_signing: false,
path: XCODEPROJ, path: XCODEPROJ,
team_id: TEAM_ID, team_id: TEAM_ID,
code_sign_identity: "Apple Distribution",
profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER} macos", profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER} macos",
targets: [SCHEME] targets: [SCHEME]
) )
@@ -304,6 +308,7 @@ platform :mac do
use_automatic_signing: false, use_automatic_signing: false,
path: XCODEPROJ, path: XCODEPROJ,
team_id: TEAM_ID, team_id: TEAM_ID,
code_sign_identity: "Developer ID Application",
profile_name: "match Direct #{DEVELOPER_APP_IDENTIFIER} macos", profile_name: "match Direct #{DEVELOPER_APP_IDENTIFIER} macos",
targets: [SCHEME] targets: [SCHEME]
) )