本文介绍了无法连接到iTunes商店错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好吧,我现在遇到这个问题。我在我的应用内购买中使用MKStoreKit。这是我的错误:
Well, I'm having this issue now. I'm using MKStoreKit in my in-app purchase. This are my errors:
Failed transaction: <SKPaymentTransaction: 0x136a62e0>
error: Error Domain=SKErrorDomain Code=2 "Cannot connect to iTunes Store" UserInfo=0x13654a90 {NSLocalizedDescription=Cannot connect to iTunes Store}
任何想法?
推荐答案
您可以通过交叉检查此检查清单来删除该错误。
如果您的答案对任何一点都不是,那么可能会导致问题
You may remove that error via cross checking this check list.If your answer is no for any of the points then it may be causing the problem
- 您启用了应用程序内购买对于您的应用程序ID?
- 您是否检查过您的产品已清除待售?
- 您的项目的.plist捆绑ID是否与您的应用程序ID相匹配?
- 您是否为新的App ID生成并安装了新的配置文件?
- 您是否已使用此新配置文件将项目配置为代码签名?
- 您在制作SKProductRequest时是否使用完整的产品ID?
- 自从将产品添加到iTunes Connect后,您是否等了几个小时?
- 您的银行详细信息是否在iTunes Connect上有效?
- 您的设备是否已越狱?如果是这样,你需要恢复越狱以使IAP正常工作。
- 对于iOS7和Xcode 5尝试这样做:
- 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?
- Have you configured your project to code sign using this new provisioning profile?
- Are you using the full product ID when making an SKProductRequest?
- Have you waited several hours since adding your product to iTunes Connect?
- Are your bank details active on iTunes Connect?
- Is your device jailbroken? If so, you need to revert the jailbreak for IAP to work.
- For iOS7 and Xcode 5 Try doing this:
- 你必须在物理设备上测试苹果在模拟器中限制IAP测试。
- 转到设置 - > iTunes& App Store - >并注销您的帐户。
从设备中删除应用并清除所有数据。
最重要的是在尝试购买之前,请先从设备中的当前iTunes帐户注销。
Most importantly do logout from your current iTunes account in your device before trying to do any purchase.
确保您已完成应用内购买测试的所有必要步骤。
Make sure you have done all necessary steps for in-App purchase testing.
这篇关于无法连接到iTunes商店错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!