File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -217,9 +217,28 @@ jobs:
217
217
# Check if the submission was successful
218
218
if echo "$SUBMISSION_OUTPUT" | grep -q "status: Accepted"; then
219
219
echo "Notarization successful, proceeding with stapling"
220
- xcrun stapler staple "$BIN"
220
+
221
+ # Check binary info before stapling
222
+ echo "Binary info before stapling:"
223
+ codesign -dvv "$BIN"
224
+ spctl -a -vv "$BIN" || true # may fail but shows info
225
+
226
+ # Try multiple stapling approaches
227
+ echo "Trying stapler staple..."
228
+ xcrun stapler staple "$BIN" || true
229
+
230
+ echo "Trying alternative stapling method..."
231
+ xcrun stapler staple -v "$BIN" || true
232
+
233
+ # Verify notarization status
234
+ echo "Verifying notarization status:"
235
+ spctl --assess --verbose=4 "$BIN" || true
236
+
237
+ # Even if stapling fails, we continue because the binary is notarized
238
+ # We can upload it anyway because it can be validated online by Gatekeeper
239
+ echo "Binary is notarized, continuing with upload even if stapling failed"
221
240
else
222
- echo "Notarization failed, skipping stapling "
241
+ echo "Notarization failed, exiting "
223
242
exit 1
224
243
fi
225
244
# ##
You can’t perform that action at this time.
0 commit comments