Get notarization log
The notary log is a key tool for debugging notarization and trusted execution issues. Check the notarization logs for information on why notarization failed, to check for warnings, and to confirm that all your code was included in the notarized ticket.
Note
Notarization logs are only available in notarytool. Always check the log file, even if notarization succeeds, because it might contain warnings that you can fix prior to your next submission.
Command
To get the notarization log from Notarization Server, use the command:
smctl-mac-x64 notarization log --tool <notarytool or altool> <NotaryServer notarization ID or Software Trust Manager submission ID> --profile-name notarytool_user -v
Command sample:
smctl-mac-x64 notarization log --tool notarytool 5cb03d00-8ab1-4fdc-bb0a-f4167dc01f03 --profile-name notarytool_user -v
Flags
Describe scan commands support these flags:
Shortcut | Flag | Description |
---|---|---|
--profile-name string | Provide a profile name for your credentials in Keychain. | |
--tool string | Provide the notarization tool name that should be used to save your credentials to Keychain Allowed tools:
| |
-v | --verbose | Enable verbose logging for saving credentials. |
-h | --help | Help for describing a scan. |
Troubleshooting
For help with the describe scan command, use:
smctl-mac-x64 notarization log --help
Alternatively, use the abbreviated version of the command:
smctl-mac-x64 notarization log -h