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

@@ -85,9 +85,6 @@ jobs:
ruby-version: '3.4' ruby-version: '3.4'
bundler-cache: true bundler-cache: true
cache-version: 1 cache-version: 1
- name: Set signing to manual for CI
run: |
sed -i '' 's/CODE_SIGN_STYLE = Automatic/CODE_SIGN_STYLE = Manual/' Yattee.xcodeproj/project.pbxproj
- name: Set build number - name: Set build number
run: | run: |
sed -i '' 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ needs.determine_build_number.outputs.build_number }}/' Yattee.xcodeproj/project.pbxproj sed -i '' 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ needs.determine_build_number.outputs.build_number }}/' Yattee.xcodeproj/project.pbxproj
@@ -114,9 +111,6 @@ jobs:
ruby-version: '3.4' ruby-version: '3.4'
bundler-cache: true bundler-cache: true
cache-version: 1 cache-version: 1
- name: Set signing to manual for CI
run: |
sed -i '' 's/CODE_SIGN_STYLE = Automatic/CODE_SIGN_STYLE = Manual/' Yattee.xcodeproj/project.pbxproj
- name: Set build number - name: Set build number
run: | run: |
sed -i '' 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ needs.determine_build_number.outputs.build_number }}/' Yattee.xcodeproj/project.pbxproj sed -i '' 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ needs.determine_build_number.outputs.build_number }}/' Yattee.xcodeproj/project.pbxproj
@@ -143,9 +137,6 @@ jobs:
ruby-version: '3.4' ruby-version: '3.4'
bundler-cache: true bundler-cache: true
cache-version: 1 cache-version: 1
- name: Set signing to manual for CI
run: |
sed -i '' 's/CODE_SIGN_STYLE = Automatic/CODE_SIGN_STYLE = Manual/' Yattee.xcodeproj/project.pbxproj
- name: Set build number - name: Set build number
run: | run: |
sed -i '' 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ needs.determine_build_number.outputs.build_number }}/' Yattee.xcodeproj/project.pbxproj sed -i '' 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ needs.determine_build_number.outputs.build_number }}/' Yattee.xcodeproj/project.pbxproj
@@ -175,9 +166,6 @@ jobs:
ruby-version: '3.4' ruby-version: '3.4'
bundler-cache: true bundler-cache: true
cache-version: 1 cache-version: 1
- name: Set signing to manual with Developer ID
run: |
sed -i '' 's/CODE_SIGN_STYLE = Automatic/CODE_SIGN_STYLE = Manual/' Yattee.xcodeproj/project.pbxproj
- name: Set build number - name: Set build number
run: | run: |
sed -i '' 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ env.BUILD_NUMBER }}/' Yattee.xcodeproj/project.pbxproj sed -i '' 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ env.BUILD_NUMBER }}/' Yattee.xcodeproj/project.pbxproj

View File

@@ -111,6 +111,22 @@ platform :ios do
api_key: api_key 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( build_app(
scheme: SCHEME, scheme: SCHEME,
destination: "generic/platform=iOS", destination: "generic/platform=iOS",
@@ -164,6 +180,14 @@ platform :tvos do
api_key: api_key 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( build_app(
scheme: SCHEME, scheme: SCHEME,
destination: "generic/platform=tvOS", destination: "generic/platform=tvOS",
@@ -218,6 +242,14 @@ platform :mac do
api_key: api_key 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( build_mac_app(
scheme: SCHEME, scheme: SCHEME,
output_directory: "fastlane/builds/#{version}-#{build}/macOS", output_directory: "fastlane/builds/#{version}-#{build}/macOS",
@@ -268,6 +300,14 @@ platform :mac do
api_key: api_key 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( build_mac_app(
scheme: SCHEME, scheme: SCHEME,
output_directory: "fastlane/builds/#{version}-#{build}/macOS", output_directory: "fastlane/builds/#{version}-#{build}/macOS",