Hi,
How to correctly check notarization for my product for DMG and APP bundle?
For APP, if I use this command:
spctl -a -v 'MyProduct.app'
It shows OK for my Mac where I compiled and signed this APP, even if this APP was NOT notarized.
And this command correctly detects missing or failed notarization:
spctl -a -vvv -t install 'MyProduct.app'
For DMG I used this command:
spctl -a -t open --context context:primary-signature MyProduct.dmg -v
However I'm not sure that all these commands on 100% validate successful/absent/failed notatization.
The goal of notarisation is to pass Gatekeeper. My advice is that you not test notarisation per se, but rather than you test whether you pass Gatekeeper or not. I describe my preferred way to do that in Testing a Notarised Product.
This is important because passing notarisation does not guarantee that you pass Gatekeeper. Notably, the problem described in Resolving Gatekeeper Problems Caused by Dangling Load Command Paths is one of my biggest ‘call drivers’.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"