File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" \
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 : |
You can’t perform that action at this time.
0 commit comments