Is it necessary to upload th开发者_如何学Goe app to itunes to test In App Purchase?
No, you just have to set up your In-App Purchases in iTunes Connect and create a test user, then you can test in the sandbox. Read this guide.
Edit: there's also an In-App Purchase session in the list of WWDC 2011 session videos. You might learn something from that too.
Yes it is necessary. Prior to submitting a binary I was getting a message through iTunes connect saying a binary must be submitted with the In-app purchase.
It seems perverse, but you have to do the following:
- Create your app in iTunes (or your new version)
- Add your In-App purchase in iTunes
- Associate your In-App purchase with the new version of your app (click on the version, scroll down to in-app purchases, click edit, add the purchase(s))
- Then build your app for distribution and upload it to the iTunes store.
- Once uploaded, click on the binary and click Reject to change the status to Developer Rejected. This means Apple won't approve it, however the In-App purchase will still be Waiting For Review.
Also make sure your provisioning profile doesn't include the wildcard '*' character.
There's a great article here which is a little out of date but still very helpful: http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/
It's a clunky process I don't think Apple though through too well in advance...
精彩评论