InApp不适用于iOs 5.1.1



我的应用程序有一个inApp购买,它与我的iOS 5.0 ipad配合使用很好。

现在,在iOS 5.1.1测试时,相同的版本在inApp Purchase中出现错误"无法连接到iTunes Store"。在调试过程中,我成功地获得了产品列表,但在尝试购买该产品时出错。。。

SKPayment *payment = [SKPayment paymentWithProductIdentifier:productIdentifier];

有人在购买inApp时遇到这种错误吗?任何建议都会有很大帮助。谢谢

此解决方案适用于我:-

进入设置--->常规--->重置--->重置所有设置,一切正常。

您使用的paymentWithProductIdentifier:在iOS 5.0中已被弃用,也许这就是问题所在。请尝试改用:paymentWithProduct:。

"带产品标识符的付款:返回具有指定产品标识符的新付款。(iOS 5.0中已弃用。)"http://developer.apple.com/library/ios/documentation/StoreKit/Reference/StoreKit_Collection/StoreKit_Collection.pdf

最新更新