97
97
PP_PATH=$RUNNER_TEMP/fbh_deep_link_example_app_profile.mobileprovision
98
98
KEYCHAIN_PATH=~/Library/Keychains/login.keychain-db
99
99
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
+
100
107
# Import certificate and provisioning profile from secrets
101
108
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
102
109
echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH
@@ -111,16 +118,19 @@ jobs:
111
118
security list-keychain -d user -s $KEYCHAIN_PATH
112
119
113
120
# Verify certificate was loaded into keychain
121
+ echo "Verifying that the signing certificate was loaded into the keychain"
114
122
security find-identity -p codesigning -v
115
123
116
124
# Apply provisioning profile
117
125
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
118
126
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
119
127
120
128
# List all provisioning profiles to make sure we placed it correctly
129
+ echo "Listing all provisioning profiles in the CI server"
121
130
ls ~/Library/MobileDevice/Provisioning\ Profiles/
122
131
123
132
# Save ExportOptions.plist from Base64 to file
133
+ echo "Saving the base64 encoded ExportOptions.plist to $EXPORT_OPTS_PATH"
124
134
echo -n "$EXPORT_OPTIONS_PLIST" | base64 --decode -o $EXPORT_OPTS_PATH
125
135
126
136
- name : Checkout repository
@@ -131,6 +141,11 @@ jobs:
131
141
sudo xcode-select -s /Applications/Xcode.app
132
142
xcodebuild -version
133
143
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
+
134
149
- name : Set up Flutter
135
150
uses : subosito/flutter-action@v2
136
151
with :
0 commit comments