Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE-1472: Added xcrun debugging tips to error message for failed signing attempts #1825

Merged
merged 4 commits into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/1472.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added xcrun debugging tips to error message for failed signing attempts
13 changes: 12 additions & 1 deletion src/briefcase/platforms/macOS/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,18 @@ def notarize(self, filename, team_id):
store_credentials = True
else:
raise BriefcaseCommandError(
f"Unable to submit {filename.relative_to(self.base_path)} for notarization."
f"""\
Unable to submit {filename.relative_to(self.base_path)} for notarization.
To find the cause of this failure, get the submission ID by running:

xcrun notarytool history

Then run:

xcrun notarytool log <submission-id>

to generate a full log of the error.
"""
) from e
finally:
# Clean up house; we don't need the archive anymore.
Expand Down