问题
I am trying to test in app purchases for my iPhone App and I see how to setup test users, but I am not sure how to create a product id that I can use. I do not want to submit my app to the app store without testing, but it seems like you have to submit in order to manage in app purchase? What am I doing wrong?
回答1:
Does your bindle id contain a wildcard? You must create a new app in iTunesConnect but the bundle id cannot contain an *. it must be "com.yourcompanyname.yourappid". The reason is that the product id for in app purchase must be tied to a specific app bundle id and not a generic one.
回答2:
Go ahead and create your in-app purchase with your product Id of choice, just don't upload a screen grab (used strangely only for the review process) and it will all work.
You will need to create a new application and submit a build, but you can reject it straight away - in app purchasing needs to know the bundle id of your app otherwise it would not be able to create the required relationship.
来源:https://stackoverflow.com/questions/1756738/how-to-create-a-product-id-for-in-app-purchases