Verification of purchase confirmation on the Mac App Store for testing: I never receive a receipt

I made my way through the receipt check using the Apple code and a few guides on the Internet. At this point, I was able to sign the code and start checking to confirm receipt. At this point, it would be helpful to see this part of the Apple documentation if you are not familiar with it:

Verification of receipt on the App Store Confirmation during the development process

When I run the application in Xcode, the application exits with code 173, as expected (there is no confirmation to verify). When I launch the application outside of Xcode (double-click in the finder), the application starts for a split second, closes, and the login dialog appears (as expected). I created a test account in iTunes Connect and connected to this account. After pressing the login button, the progress indicator scrolls for a couple of seconds, and then the registration window disappears. As far as I can tell, nothing happens. As far as I understand, the App Store should automatically generate / pull out a receipt and launch the application at this moment, but this is not so.

I tried to improve the application launch process a bit. I put some printf at every point of the receipt verification process, but I cannot figure out where they will be printed. (Running the application in the terminal using "open" does not show any output at all.) I tried to use NSRunAlertPanel to create dialog boxes, but I don’t think the application is loaded when the check is checked to pick them up correctly.

At this point, I’m not sure how to debug the problem further due to the fact that you cannot really observe what is happening.

+6
source share
2 answers

Make sure you set up the application in iTunes Connect (you need to enter data, you do not need to submit a binary file).

* Originally taken from blog.pado.name/post/3008648963/app-store-receipt-validation-oddness, which is now 404

+7
source

If you want to save a lot of time developing check verification code, I highly recommend Receigen . (No, I'm not the developer of this tool, but I prefer to add features and not repeat what others did.)

Make sure you sign up with a development certificate app to use the tester added to iTunes Connect.

+1
source

Source: https://habr.com/ru/post/889501/


All Articles