Skip to content

Commit 85b1b82

Browse files
authored
Merge pull request #1825 from ethompsy/ISSUE-1472
ISSUE-1472: Added xcrun debugging tips to error message for failed signing attempts
2 parents 1cbcff3 + f4e93a0 commit 85b1b82

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

changes/1472.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added xcrun debugging tips to error message for failed signing attempts

src/briefcase/platforms/macOS/__init__.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,18 @@ def notarize(self, filename, team_id):
674674
store_credentials = True
675675
else:
676676
raise BriefcaseCommandError(
677-
f"Unable to submit {filename.relative_to(self.base_path)} for notarization."
677+
f"""\
678+
Unable to submit {filename.relative_to(self.base_path)} for notarization.
679+
To find the cause of this failure, get the submission ID by running:
680+
681+
xcrun notarytool history
682+
683+
Then run:
684+
685+
xcrun notarytool log <submission-id>
686+
687+
to generate a full log of the error.
688+
"""
678689
) from e
679690
finally:
680691
# Clean up house; we don't need the archive anymore.

0 commit comments

Comments
 (0)