diff --git a/changes/1472.misc.rst b/changes/1472.misc.rst new file mode 100644 index 000000000..b21f40c96 --- /dev/null +++ b/changes/1472.misc.rst @@ -0,0 +1 @@ +Added xcrun debugging tips to error message for failed signing attempts diff --git a/src/briefcase/platforms/macOS/__init__.py b/src/briefcase/platforms/macOS/__init__.py index f03394dad..04c29593f 100644 --- a/src/briefcase/platforms/macOS/__init__.py +++ b/src/briefcase/platforms/macOS/__init__.py @@ -674,7 +674,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 + +to generate a full log of the error. +""" ) from e finally: # Clean up house; we don't need the archive anymore.