From 2b276370ecd39733a06a492c760c147b4cf15db2 Mon Sep 17 00:00:00 2001 From: Rafal Kolarz Date: Sat, 17 Oct 2026 00:01:32 +0100 Subject: [PATCH] Create App Store signing profile during CI --- codemagic.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/codemagic.yaml b/codemagic.yaml index a0ce418..25dd003 100644 --- a/codemagic.yaml +++ b/codemagic.yaml @@ -14,6 +14,7 @@ workflows: vars: XCODE_PROJECT: "Kasztelan.xcodeproj" XCODE_SCHEME: "Kasztelan" + BUNDLE_ID: "uk.co.kasztelan.app.ios" xcode: latest scripts: - name: Configure Kasztelan API key @@ -23,7 +24,13 @@ workflows: umask 077 printf 'KASZTELAN_APP_KEY = %s\n' "$KASZTELAN_APP_KEY" > Config/Secrets.xcconfig - name: Configure App Store signing - script: xcode-project use-profiles + script: | + keychain initialize + app-store-connect fetch-signing-files "$BUNDLE_ID" \ + --type IOS_APP_STORE \ + --create + keychain add-certificates + xcode-project use-profiles - name: Build signed IPA script: | xcode-project build-ipa \