Skip to content

Commit acb914a

Browse files
Claudeclaude
andcommitted
ci(ios): pass API key auth to xcodebuild exportArchive
The app-store-connect export method requires Apple authentication even with manual signing. Pass the App Store Connect API key via -authenticationKeyPath/-authenticationKeyID/-authenticationKeyIssuerID so xcodebuild can authenticate without a signed-in Apple account. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c25dfa8 commit acb914a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ios-release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ jobs:
109109
PROVISIONING_PROFILE_SPECIFIER="$PROVISIONING_PROFILE_UUID"
110110
111111
- name: Export IPA
112+
env:
113+
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
114+
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
112115
run: |
113116
EXPORT_PLIST="$RUNNER_TEMP/ExportOptions.plist"
114117
cat > "$EXPORT_PLIST" <<-PLIST
@@ -137,14 +140,13 @@ jobs:
137140
</plist>
138141
PLIST
139142
140-
echo "--- ExportOptions.plist ---"
141-
cat "$EXPORT_PLIST"
142-
echo "---"
143-
144143
xcodebuild -exportArchive \
145144
-archivePath "$RUNNER_TEMP/FareBot.xcarchive" \
146145
-exportPath "$RUNNER_TEMP/export" \
147-
-exportOptionsPlist "$EXPORT_PLIST"
146+
-exportOptionsPlist "$EXPORT_PLIST" \
147+
-authenticationKeyPath ~/.private_keys/AuthKey_"$APP_STORE_CONNECT_API_KEY_ID".p8 \
148+
-authenticationKeyID "$APP_STORE_CONNECT_API_KEY_ID" \
149+
-authenticationKeyIssuerID "$APP_STORE_CONNECT_ISSUER_ID"
148150
149151
- name: Install fastlane
150152
run: brew install fastlane

0 commit comments

Comments
 (0)