Skip to content

Commit 4daf1c5

Browse files
katipallyCopilot
andcommitted
fix(release): drop CODE_SIGN_IDENTITY from archive, add API key to export
Automatic + explicit CODE_SIGN_IDENTITY=Developer ID Application is an invalid combo — Xcode rejects it. Let allowProvisioningUpdates handle the archive cert; export step (developer-id, signingStyle=automatic) and the manual re-sign step produce the final Developer ID binary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9e0a228 commit 4daf1c5

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ jobs:
117117
118118
- name: Build Release Archive
119119
run: |
120+
# Archive with Automatic signing + allowProvisioningUpdates.
121+
# The API key lets Xcode auto-create/download the Mac Development
122+
# provisioning profile for iCloud/App Groups entitlements.
123+
# CODE_SIGN_IDENTITY is NOT overridden here — that conflicts with
124+
# Automatic style. The export + re-sign steps apply Developer ID.
120125
xcodebuild \
121126
-project DoomCoder.xcodeproj \
122127
-scheme DoomCoder \
@@ -128,7 +133,6 @@ jobs:
128133
-authenticationKeyIssuerID "${{ steps.write-asc-key.outputs.issuer_id }}" \
129134
archive \
130135
CODE_SIGN_STYLE=Automatic \
131-
CODE_SIGN_IDENTITY="Developer ID Application" \
132136
DEVELOPMENT_TEAM="${{ secrets.APPLE_TEAM_ID }}" \
133137
MARKETING_VERSION="${{ env.VERSION }}" \
134138
CURRENT_PROJECT_VERSION="${{ env.BUILD }}"
@@ -139,7 +143,11 @@ jobs:
139143
-exportArchive \
140144
-archivePath build/DoomCoder.xcarchive \
141145
-exportPath build/export \
142-
-exportOptionsPlist scripts/ExportOptions.plist
146+
-exportOptionsPlist scripts/ExportOptions.plist \
147+
-allowProvisioningUpdates \
148+
-authenticationKeyPath "${{ steps.write-asc-key.outputs.key_path }}" \
149+
-authenticationKeyID "${{ steps.write-asc-key.outputs.key_id }}" \
150+
-authenticationKeyIssuerID "${{ steps.write-asc-key.outputs.issuer_id }}"
143151
144152
- name: Re-sign all embedded code (inside-out)
145153
run: |

0 commit comments

Comments
 (0)