Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SKErrorDomain Code=0 in In-App Purchase

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.

like image 368
Leo Avatar asked Mar 30 '17 08:03

Leo


Video Answer


1 Answers

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.

like image 177
John Estropia Avatar answered Sep 28 '22 21:09

John Estropia