How to Check if a macOS App is Notarized
source link: https://dev.to/ajpagente/how-to-check-if-a-macos-app-is-notarized-8p4
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Version: macOS 10.15.7
You can check if a macOS application is notarized by using the spctl
command-line utility. spctl
evaluates if the system allows execution, installation, and other operations on files.
The first example is an app that is not notarized. spctl
shows the status as rejected and the source indicates Unnotarized Developer ID.
$ spctl -a -vvv -t install MacApp.app
MacApp.app: rejected
source=Unnotarized Developer ID
origin=Developer ID Application: <redacted developer account>
Enter fullscreen mode
Exit fullscreen mode
The second example is a notarized app. spctl
shows the status as accepted.
$ spctl -a -vvv -t install Project1.app
Project1.app: accepted
source=Notarized Developer ID
origin=Developer ID Application: <redacted developer account>
Enter fullscreen mode
Exit fullscreen mode
The table below describes the spctl
options.
Option Description
-a
Stands for assess and requests spctl
to perform an assessment of the given file.
-vvv
Specifies increased output verbosity.
-t install
Specifies the type of assessment. install
assesses installation.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK