Skip to content

Commit

Permalink
Added debug logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-f committed Jun 11, 2024
1 parent 2db8780 commit f3f89db
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
BUILD_TUNNEL_PROVISION_PROFILE_BASE64: ${{ secrets.IOS_TUNNEL_PROVISION_PROFILE_BASE64 }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
run: |
set -x
# create variables
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
PP_PATH=$RUNNER_TEMP/build_pp.mobileprovision
Expand All @@ -99,10 +100,19 @@ jobs:
security list-keychain -d user -s $KEYCHAIN_PATH
# apply main provisioning profile
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
PROVISIONING_PROFILES_DIR=~/Library/MobileDevice/Provisioning\ Profiles
mkdir -p "$PROVISIONING_PROFILES_DIR"
echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
# Verify main provisioning profile
if [ -f "$PROVISIONING_PROFILES_DIR/$(basename $PP_PATH)" ]; then
echo "Main provisioning profile installed successfully."
else
echo "Error: Main provisioning profile was not installed."
exit 1
fi
# apply tunnel provisioning profile
echo -n "$BUILD_TUNNEL_PROVISION_PROFILE_BASE64" | base64 --decode -o $TPP_PATH
cp $TPP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
Expand Down

0 comments on commit f3f89db

Please sign in to comment.