Skip to content

Commit 51cc787

Browse files
Claudeclaude
andcommitted
ci(ios): generate ExportOptions.plist dynamically with profile UUID
Generate the full plist at runtime with the actual provisioning profile UUID and log it for debugging. Remove -allowProvisioningUpdates which requires an Apple account. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9d0ea77 commit 51cc787

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

.github/workflows/ios-release.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,39 @@ jobs:
111111
- name: Export IPA
112112
run: |
113113
EXPORT_PLIST="$RUNNER_TEMP/ExportOptions.plist"
114-
sed "s/PROVISIONING_PROFILE_UUID_PLACEHOLDER/$PROVISIONING_PROFILE_UUID/" \
115-
app/ios/ExportOptions.plist > "$EXPORT_PLIST"
114+
cat > "$EXPORT_PLIST" <<PLIST
115+
<?xml version="1.0" encoding="UTF-8"?>
116+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
117+
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
118+
<plist version="1.0">
119+
<dict>
120+
<key>method</key>
121+
<string>app-store-connect</string>
122+
<key>teamID</key>
123+
<string>ZJ9GEQ36AH</string>
124+
<key>signingStyle</key>
125+
<string>manual</string>
126+
<key>signingCertificate</key>
127+
<string>Apple Distribution</string>
128+
<key>provisioningProfiles</key>
129+
<dict>
130+
<key>com.codebutler.farebot</key>
131+
<string>$PROVISIONING_PROFILE_UUID</string>
132+
</dict>
133+
<key>uploadSymbols</key>
134+
<true/>
135+
<key>destination</key>
136+
<string>upload</string>
137+
</dict>
138+
</plist>
139+
PLIST
140+
141+
cat "$EXPORT_PLIST"
116142
117143
xcodebuild -exportArchive \
118144
-archivePath "$RUNNER_TEMP/FareBot.xcarchive" \
119145
-exportPath "$RUNNER_TEMP/export" \
120-
-exportOptionsPlist "$EXPORT_PLIST" \
121-
-allowProvisioningUpdates
146+
-exportOptionsPlist "$EXPORT_PLIST"
122147
123148
- name: Install fastlane
124149
run: brew install fastlane

app/ios/ExportOptions.plist

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@
77
<string>app-store-connect</string>
88
<key>teamID</key>
99
<string>ZJ9GEQ36AH</string>
10-
<key>signingStyle</key>
11-
<string>manual</string>
12-
<key>signingCertificate</key>
13-
<string>Apple Distribution</string>
14-
<key>provisioningProfiles</key>
15-
<dict>
16-
<key>com.codebutler.farebot</key>
17-
<string>PROVISIONING_PROFILE_UUID_PLACEHOLDER</string>
18-
</dict>
1910
<key>uploadSymbols</key>
2011
<true/>
2112
<key>destination</key>

0 commit comments

Comments
 (0)