Skip to content

Commit 924e50a

Browse files
fix: convert certificate password encoding from UTF-8 to Latin-1 for macOS security import
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 286e02e commit 924e50a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release-ios.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ jobs:
6262
# Import certificate
6363
CERT_PATH=$RUNNER_TEMP/certificate.p12
6464
echo -n "$IOS_CERTIFICATE_P12" | base64 --decode -o "$CERT_PATH"
65+
# Convert password from UTF-8 to Latin-1 (£ char is 2 bytes in UTF-8 but security import expects 1 byte)
66+
CERT_PASS=$(printf '%s' "$IOS_CERTIFICATE_PASSWORD" | iconv -f UTF-8 -t ISO-8859-1)
6567
security import "$CERT_PATH" \
66-
-P "$IOS_CERTIFICATE_PASSWORD" \
68+
-P "$CERT_PASS" \
6769
-A \
6870
-t cert \
6971
-f pkcs12 \

0 commit comments

Comments
 (0)