iPhone StoreKit-无效的产品ID [英] iPhone StoreKit - invalid product id's

查看:83
本文介绍了iPhone StoreKit-无效的产品ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在沙盒环境中测试In App Purchase.

I'm trying to test In App Purchase within the sandbox environment.

为了测试代码,我做了以下工作:

In order to test the code I did the following:

  1. 在iTunes Connect的管理用户"下创建了应用内购买测试用户帐户

  1. Created an In App Purchase Test User account under 'Manage Users' in iTunes Connect

在管理您的应用内购买"下创建了一些应用内购买产品.我为产品ID使用了数字值和字母数字值.

Created some in app purchase products under 'Manage Your In App Purchases'. I used numeric values and alpha-numeric values for the Product IDs.

将应用程序加载到iPhone上,转到设置"->存储",然后退出常规存储并登录到在步骤1中创建的测试帐户中.

Loaded the app onto the iPhone, went to Settings->Store and logged out of the regular store and into the test account created in step 1

在 (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response 回调

所有提交的产品ID都在response.invalidProductIdentifiers属性中. 提交请求时,我首先尝试了在第2步中创建的确切产品ID.我还尝试为它们添加捆绑ID前缀:

All the submitted Product ID's are in the response.invalidProductIdentifiers property. When submitting the request I first tried the exact Product IDs created during step 2. I also tried prefixing them with the Bundle ID:

NSString *id2 = @"com.super.duper.8";
NSSet *productList = [NSSet setWithObjects:id2, @"8", nil];

SKProductsRequest *request= [[SKProductsRequest alloc] initWithProductIdentifiers:productList];

我缺少明显的东西吗? 感谢您的帮助.

Am I missing something obvious? Any help is appreciated.

阿齐姆

推荐答案

如果您仍然收到无效的产品ID,则我一直在收集所有各种原因的清单:

If you are still getting invalid product ids, I've been accumulating a checklist of all of the various causes:

http://troybrant.net/blog/2010/01/invalid -product-ids/

这篇关于iPhone StoreKit-无效的产品ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆