Skip to content

Commit 1ef1fab

Browse files
Working on iOS GitHub CI
1 parent 333d6c1 commit 1ef1fab

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/pr_validation.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ jobs:
9797
PP_PATH=$RUNNER_TEMP/fbh_deep_link_example_app_profile.mobileprovision
9898
KEYCHAIN_PATH=~/Library/Keychains/login.keychain-db
9999
100+
# Check keychain status
101+
echo "All keychains:"
102+
security list-keychains
103+
104+
echo "Is keychain unlocked?"
105+
security show-keychain-info $KEYCHAIN_PATH
106+
100107
# Import certificate and provisioning profile from secrets
101108
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
102109
echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH
@@ -111,16 +118,19 @@ jobs:
111118
security list-keychain -d user -s $KEYCHAIN_PATH
112119
113120
# Verify certificate was loaded into keychain
121+
echo "Verifying that the signing certificate was loaded into the keychain"
114122
security find-identity -p codesigning -v
115123
116124
# Apply provisioning profile
117125
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
118126
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
119127
120128
# List all provisioning profiles to make sure we placed it correctly
129+
echo "Listing all provisioning profiles in the CI server"
121130
ls ~/Library/MobileDevice/Provisioning\ Profiles/
122131
123132
# Save ExportOptions.plist from Base64 to file
133+
echo "Saving the base64 encoded ExportOptions.plist to $EXPORT_OPTS_PATH"
124134
echo -n "$EXPORT_OPTIONS_PLIST" | base64 --decode -o $EXPORT_OPTS_PATH
125135
126136
- name: Checkout repository
@@ -131,6 +141,11 @@ jobs:
131141
sudo xcode-select -s /Applications/Xcode.app
132142
xcodebuild -version
133143
144+
- name: Verify Xcode access to provisioning profile
145+
run: |
146+
echo "Listing all provisioning profiles visible to xcode:"
147+
xcrun simctl list profiles
148+
134149
- name: Set up Flutter
135150
uses: subosito/flutter-action@v2
136151
with:

0 commit comments

Comments
 (0)