Use fastlane update_code_signing_settings for manual signing

Replaced sed-based CODE_SIGN_STYLE override with fastlane's
update_code_signing_settings which also sets PROVISIONING_PROFILE_SPECIFIER.
This fixes the YatteeShareExtension build failure where it couldn't
find a provisioning profile under manual signing.
This commit is contained in:
Arkadiusz Fal
2026-02-13 21:19:16 +01:00
parent 16609aa649
commit 895aca267a
2 changed files with 40 additions and 12 deletions

View File

@@ -111,6 +111,22 @@ platform :ios do
api_key: api_key
)
update_code_signing_settings(
use_automatic_signing: false,
path: XCODEPROJ,
team_id: TEAM_ID,
profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER}",
targets: [SCHEME]
)
update_code_signing_settings(
use_automatic_signing: false,
path: XCODEPROJ,
team_id: TEAM_ID,
profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER}.ShareExtension",
targets: ["YatteeShareExtension"]
)
build_app(
scheme: SCHEME,
destination: "generic/platform=iOS",
@@ -164,6 +180,14 @@ platform :tvos do
api_key: api_key
)
update_code_signing_settings(
use_automatic_signing: false,
path: XCODEPROJ,
team_id: TEAM_ID,
profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER} tvos",
targets: [SCHEME]
)
build_app(
scheme: SCHEME,
destination: "generic/platform=tvOS",
@@ -218,6 +242,14 @@ platform :mac do
api_key: api_key
)
update_code_signing_settings(
use_automatic_signing: false,
path: XCODEPROJ,
team_id: TEAM_ID,
profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER} macos",
targets: [SCHEME]
)
build_mac_app(
scheme: SCHEME,
output_directory: "fastlane/builds/#{version}-#{build}/macOS",
@@ -268,6 +300,14 @@ platform :mac do
api_key: api_key
)
update_code_signing_settings(
use_automatic_signing: false,
path: XCODEPROJ,
team_id: TEAM_ID,
profile_name: "match Direct #{DEVELOPER_APP_IDENTIFIER} macos",
targets: [SCHEME]
)
build_mac_app(
scheme: SCHEME,
output_directory: "fastlane/builds/#{version}-#{build}/macOS",