Skip to content

Commit 248d2c4

Browse files
bdejongclaude
andauthored
ci: add verbose notarization logging to diagnose macOS build failure (#73)
* ci: add verbose notarization logging to diagnose macOS build failure Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * ci: detect expired Apple Developer agreement with actionable error message Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 27c47eb commit 248d2c4

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,33 @@ jobs:
8484
--apple-id "$APPLE_ID" \
8585
--password "$APPLE_PASSWORD" \
8686
--team-id "$APPLE_TEAM_ID" \
87-
--wait 2>&1)
87+
--verbose \
88+
--wait 2>&1) || true
8889
echo "$SUBMIT_OUTPUT"
8990
9091
# Extract submission ID
9192
SUBMISSION_ID=$(echo "$SUBMIT_OUTPUT" | grep "id:" | head -1 | awk '{print $2}')
9293
94+
# Check for known errors
95+
if echo "$SUBMIT_OUTPUT" | grep -qi "agreement.*missing\|agreement.*expired"; then
96+
echo "::error::Apple Developer agreement has expired or is missing. Visit https://appstoreconnect.apple.com/ and accept the pending agreements."
97+
exit 1
98+
fi
99+
93100
# Check for success
94101
if echo "$SUBMIT_OUTPUT" | grep -q "status: Accepted"; then
95102
echo "Notarization succeeded"
96103
else
97104
echo "Notarization failed — fetching log..."
98-
xcrun notarytool log "$SUBMISSION_ID" \
99-
--apple-id "$APPLE_ID" \
100-
--password "$APPLE_PASSWORD" \
101-
--team-id "$APPLE_TEAM_ID"
105+
if [ -n "$SUBMISSION_ID" ]; then
106+
xcrun notarytool log "$SUBMISSION_ID" \
107+
--apple-id "$APPLE_ID" \
108+
--password "$APPLE_PASSWORD" \
109+
--team-id "$APPLE_TEAM_ID" \
110+
--verbose || echo "Failed to fetch notarization log"
111+
else
112+
echo "No submission ID found — submit itself likely failed"
113+
fi
102114
exit 1
103115
fi
104116

0 commit comments

Comments
 (0)