问题
I've been searching all over the web for more than a week, i've tried everything suggested on SO and everywhere, but nothing works. I can't obtain products from Store Kit. Products array is always returned empty and invalid product identifiers is always full with my identifiers. Honestly, i have no idea what to do further. This question is my last hope. Can anybody help?
NSSet *s = [NSSet setWithObjects:@"com.aceapegames.awesomecatgame.double_coins",
@"com.aceapegames.awesomecatgame.10k_coins",
@"com.aceapegames.awesomecatgame.150k_coins",
@"com.aceapegames.awesomecatgame.50k_coins",
@"com.aceapegames.awesomecatgame.disable_ads", nil];
SKProductsRequest *request = [[SKProductsRequest alloc] initWithProductIdentifiers:s];
request.delegate = self;
[request start];
回答1:
Few days Ago I have also implemented inApp purchase and I have also face this issue. In my case reason was tax information.
You need to make sure you have an iOS Paid Applications Contract setup which is located under the "Contracts, Tax, and Banking" section of iTunes connect. First you have to click on the request button, then you have to click on the 3 Set Up buttons (Contact Info, Bank Info, Tax Info)
Here is a small check list that I have copied from one website.
- Have you enabled In-App Purchases for your App ID?
- Have you checked Cleared for Sale for your product?
- Does your project’s .plist Bundle ID match your App ID?
- Have you generated and installed a new provisioning profile for the new App ID?
- Are you using the full product ID when when making an SKProductRequest?
- Are your bank details active on iTunes Connect?
- Have you tried deleting the app from your device and reinstalling?
Make sure you can answer “Yes” to each of above questions
Here is a link of apple developer it contains best practicise and it's FAQ contains few more reasons of Invalid Identifier Apple Developer Link
来源:https://stackoverflow.com/questions/18511722/skproductresponse-invalid-product-identifiers-nothing-helps