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

        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!

        • Re: Where App obtained from
          eskimo Apple Staff Apple Staff (6,470 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"