Where App obtained from

Hi

There is a command named "system_profiler". It can list all Applications in the system, and there is a line named "Obtained from"

Launchpad:

Version: 1.0

Obtained from: Apple


It seems that this info is got from signature.

Is there an API to get this information ?


Thank you very much!

Replies

I’m not sure about that specific information, but you can interrogate the signature of an on-disk executable using the code signing API (

<Security/SecStaticCode.h>
and
<Security/SecStaticCode.h>
).

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"