问题
To test InAppPurchase in sandbox, do i need to upload a app in Appstore? If not then how the code will relate to the dummy app i made in iTunesConnect for inAppPurchase?
回答1:
As mentioned by @stack , InAppPurchase can not be tested on Simulator. You have to use device to test it. And also, you do not need to submit application for AppStore release.
Please have look at this blog and visit the last section called Creating the Purchase Product and Test User in iTunes Connect.
Please let me know if this post is useful for you.
回答2:
No need to upload binary also. Just make sure that status of InAppPurchase item must be "Ready to submit" n not "Submit for review"(for sandbox testing only.) And xcode project will relate to that dummy app via Bundle ID.
来源:https://stackoverflow.com/questions/12154503/inapppurchase-in-sandboxvia-test-user