2
- (void) requestProductData
{
SKProductsRequest *request= [[SKProductsRequest alloc]
initWithProductIdentifiers: [NSSet setWithObjects: @"com.mycompany.appname.item1", @"com.mycompany.appname.item2", nil]];
request.delegate = self;
[request start];
}
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:
(SKProductsResponse *)response
{
NSArray *myProducts = response.products;
NSLog(@"%i Products retrieved", [myProducts count]);
[request autorelease];
}
正如你所看到的,我成立了的NSLog返回的产品数量。
我不断收到检索0个产品。
产品ID & &捆绑标识符匹配与iTunes连接。
In App Purchase的状态是“准备提交”,应用状态为“准备要上传”
有别的我应该设立在iTunes Connect?或与代码的东西?未检索的任何产品,在应用内购买
编辑:
是否有所作为,我目前尚不具备的iOS付费应用有效合同?
他们'response.invalideProductIdentifiers' 我已经翻了一番检查所有的拼写。 我如何确保沙箱? – iamruskie
如果您在xcode中使用编译并运行,它应该以自动方式进行沙盒处理。 – Kevin
是的,我也这么认为,我默认在沙箱中。 那么问题是什么? – iamruskie