1 Reply
      Latest reply on Dec 7, 2016 6:57 AM by eskimo
      weichao119 Level 1 Level 1 (0 points)


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


        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!

        • Re: Where App obtained from
          eskimo Apple Staff Apple Staff (13,905 points)

          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"