From 895aca267a789c5d47e12643602d07ee53a46a8c Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Fri, 13 Feb 2026 21:19:16 +0100 Subject: [PATCH] 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. --- .github/workflows/release.yml | 12 ----------- fastlane/Fastfile | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ce4adb0..91721f67 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,9 +85,6 @@ jobs: ruby-version: '3.4' bundler-cache: true 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 run: | 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' bundler-cache: true 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 run: | 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' bundler-cache: true 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 run: | 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' bundler-cache: true 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 run: | sed -i '' 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ env.BUILD_NUMBER }}/' Yattee.xcodeproj/project.pbxproj diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 6f90037e..1dcf2eee 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -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",