Some of the many things that I tried to solve this problem.
UPDATE: Here is a comment by Rainer Brockerhoff from the bottom of this article. A much more elegant solution.
I do not see the need for all these distortions ...
To debug my check verification code, I simply create and then show the product application in Finder. Double-click it once and it will exit (173), then you will receive a receipt in the kit.
Now go back to Xcode and debug the check. The receipt will remain there until you clear; you can do it all again or copy the receipt elsewhere and return it after the assembly - at some point I had the receipt re-inserted into the script structure.
If you want to test the archived application, show the product in Finder, then go to several levels of folders in the "Release" folder and there you will see the application - you can double-click it there.
Long receipt procedure:
- Archive application
- In the organizer of Xcode
- Select "Distribute" ...
- Export as: Mac Installer Package
Finally, install it from the command line as follows
sudo installer -store -pkg (path to package including filename) -target /
The application should now contain a receipt along the way
/Applications/SampleApp.app/Contents/ _MASReceipt / get
Confirmation Email
Apple sends an email when creating a test user in iTunes Connect.
Email subject:
Please check the contact email address for your Apple ID
My mail was in the spam folder, so I never saw it. Thus, the test user account has never been verified.
Check Status
In iTunes Connect, under Application Management > SampleApp > In-App Purchase Management
Here the status should say: ready to send
If this is not the case, you may need to upload a screenshot.