SKErrorDomain Code=0 in In-App Purchase

2019-02-03 19:55发布

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.

1条回答
叼着烟拽天下
2楼-- · 2019-02-03 20:18

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. enter image description here

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

查看更多
登录 后发表回答