DEV Community

..
..

Posted on

14 2

How to Check if a macOS App is Notarized

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.

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay