I am trying to test In-App purchases for MacOS. After entering the test user credentials, the App Store complains: "Current receipt invalid or mismatched ds person id." and the purchase fails.
Some of the many things I tried to get around this problem.
UPDATE: Here is Rainer Brockerhoff's comment from the bottom that article. Much more elegant solution.
I don't see the need for all those contortions...
To debug my receipt checking code, I just build, then show the product app in the Finder. Double-click it once and it will exit(173), then you'll get the receipt into the bundle.
Now go back to Xcode and debug the checker. The receipt will stay there until you clean; you can do all that again, or copy the receipt elsewhere and put it back after build - at one point I had the receipt reinserted by a build script.
If you want to test out the archived app, show the product in the Finder, then go up a few folder levels to the "Release" folder, and there'll you see the app - you can double-click it from there.
The long procedure for getting a receipt:
Finally install it from the commandline like this
sudo installer -store -pkg (path to package including filename) -target /
Now the app should contain a receipt at this path
/Applications/SampleApp.app/Contents/_MASReceipt/receipt
Apple sends an email when you create a Test User within iTunes Connect.
Email subject:
Please verify the contact email address for your Apple ID
My mail ended up in my spam folder, so I never saw it. Thus never got verified the Test User Account.
Within iTunes Connect under Manage Your Apps > SampleApp > Manage In-App Purchases
Here the status should say: Ready to Submit
If it doesn't, then you may need to upload a screenshot.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With