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.
source share