Skip to content

Commit 356de2f

Browse files
fix: use printf instead of echo -n for base64 decoding in CI
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 61dfee5 commit 356de2f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release-ios.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
6060
# Import certificate
6161
CERT_PATH=$RUNNER_TEMP/certificate.p12
62-
echo -n "$IOS_CERTIFICATE_P12" | base64 --decode -o "$CERT_PATH"
62+
printf '%s' "$IOS_CERTIFICATE_P12" | base64 --decode > "$CERT_PATH"
6363
# Convert password from UTF-8 to Latin-1 (£ char is 2 bytes in UTF-8 but security import expects 1 byte)
6464
CERT_PASS=$(printf '%s' "$IOS_CERTIFICATE_PASSWORD" | iconv -f UTF-8 -t ISO-8859-1)
6565
security import "$CERT_PATH" \
@@ -76,7 +76,11 @@ jobs:
7676
IOS_PROVISION_PROFILE: ${{ secrets.IOS_PROVISION_PROFILE }}
7777
run: |
7878
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
79-
echo -n "$IOS_PROVISION_PROFILE" | base64 --decode -o ~/Library/MobileDevice/Provisioning\ Profiles/e529cf17-07cc-43e0-94dd-3e2384d002ce.mobileprovision
79+
PP_PATH=~/Library/MobileDevice/Provisioning\ Profiles/e529cf17-07cc-43e0-94dd-3e2384d002ce.mobileprovision
80+
printf '%s' "$IOS_PROVISION_PROFILE" | base64 --decode > "$PP_PATH"
81+
# Verify profile was written correctly
82+
ls -la "$PP_PATH"
83+
security cms -D -i "$PP_PATH" | head -5
8084
8185
- name: Sync version to Xcode project
8286
run: |

0 commit comments

Comments
 (0)