From 74d39aea963f68b909d3d8a2ec4b8d9743cb0791 Mon Sep 17 00:00:00 2001 From: Adam Borbas Date: Tue, 14 Jul 2026 11:25:31 +0200 Subject: [PATCH] Use manual signing for the release archive on CI The project uses automatic code signing for local dev, but CI has no Apple account to resolve a provisioning profile, so the archive failed with "No profiles ... Automatic signing is disabled". Force manual signing with the match-installed distribution profile before build_app, scoped to the Release configuration so Debug/local automatic signing is untouched. Verified locally: archive succeeds and the signed build uploads to TestFlight. Co-Authored-By: Claude Opus 4.8 (1M context) --- fastlane/Fastfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index e5a9f19..2b2fae2 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -60,6 +60,20 @@ platform :ios do ) + 1 set_xcconfig_value(key: "CURRENT_PROJECT_VERSION", value: next_build.to_s) + # The project uses automatic signing for local development, but on CI there's + # no Apple account to resolve a profile, so the archive must use manual + # signing with the match-installed distribution profile. Scoped to the + # Release configuration so Debug/local automatic signing is untouched. + profile_name = ENV.fetch("sigh_com.adborbas.hemera.app_appstore_profile-name") + update_code_signing_settings( + use_automatic_signing: false, + path: "Hemera.xcodeproj", + targets: ["Hemera"], + build_configurations: ["Release"], + code_sign_identity: "Apple Distribution", + profile_name: profile_name + ) + build_app( project: "Hemera.xcodeproj", scheme: "Hemera",