Mac App Store Receipt Validation Code?

前端 未结 13 1693
广开言路
广开言路 2020-12-07 09:04

Wondering if anyone has a tutorial or working code for the new Mac App Store\'s receipt validation? About the only references I\'ve been able to find so far are Apple\'s st

13条回答
  •  情歌与酒
    2020-12-07 09:30

    I reviewed Alan Quartermain's code and it looks good. Something to think about:

    the last parameter here could/should be a compiled requirement stating that the code must be signed by YOUR certificate and no-one else's.

    When the developer submits an app to the store for approval, the signing certificates are as follows:

    3rd Party Mac Developer Application: me
    Apple Worldwide Developer Relations Certification Authority
    Apple Root CA
    

    After the app is delivered from the App Store to the end user, the signing certificates are as follows:

    Apple Mac OS Application Signing
    Apple Worldwide Developer Relations Certification Authority
    Apple Root CA
    

    Also, I suggest only exit(173) when the receipt is missing, but everything else is in order.

提交回复
热议问题