SKErrorDomain Code=0 in In

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

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

Then the alert comes

It works before, we did not change any IAP related Code.

I have searched stackoverflow and google and tried these:

  • 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?

    Update: I think it is the iTunes Connect Server problem, it is solved now.


    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.

    --Edit--

    This has been fixed. 在这里输入图像描述

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

    链接地址: http://www.djcxy.com/p/38822.html

    上一篇: MongoDB:查找除日期范围条件匹配的文档之外的所有文档

    下一篇: 在In中SKErrorDomain代码= 0