应用内购买中的SKErrorDomain代码= 0 [英] SKErrorDomain Code=0 in In-App Purchase

查看:190
本文介绍了应用内购买中的SKErrorDomain代码= 0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,在沙箱模式下测试IAP时,我们突然得到 SKPaymentTransactionStateFailed ,错误消息:

Today, when testing IAP in sandbox mode, we suddenly got SKPaymentTransactionStateFailed with Error message:


错误域= SKErrorDomain代码= 0无法连接到iTunes StoreUserInfo = {NSLocalizedDescription =无法连接到iTunes Store}

Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}

然后提醒

之前有效,我们没有更改任何与IAP相关的代码。

我搜索了stackoverflow和google并尝试了这些:

I have searched stackoverflow and google and tried these:


  • 使用设备测试,而非模拟器,

  • 确保产品ID正确。

  • 确保XCode常规设置中的内部版本号正确

  • 创建新的沙箱测试帐户在iTunes连接,并注销所有其他帐户,然后使用沙盒测试帐户进行测试。

  • 重新启动/重置设备

  • 确保苹果d最近没有更新eveloper帐户

  • Test with device, not simulator,
  • Make sure product id is right.
  • Make sure the build number in XCode General Settings is right
  • Create new sandbox test account in iTunes connect, and logout all other account, then test with sandbox test account.
  • Reboot/Reset the device
  • Make sure apple developer account is not renewed recently

这些都不适用于我。有什么建议吗?

None of these works for me. Any suggestions?

更新:我认为这是iTunes Connect服务器的问题,现在已经解决了。

推荐答案

刚才有一个bug正在发生。我们的日志显示生产和沙箱中的错误增加。到目前为止,我们还没有看到任何解决方案。

There seems to be a bug going on just now. Our logs show increased errors in both production and sandbox. So far we haven't seen any solution yet.

- 编辑 -

这已得到修复。

This has been fixed.

投票结束此问题以防止混淆未来的类似问题。

Voting to close this issue to prevent confusing future similar problems.

这篇关于应用内购买中的SKErrorDomain代码= 0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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