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}

  • Facebook authentication in a UIWebView does not redirect back to original page on my site asking for auth
  • How to check iOS version?
  • ios - how to do a native “Pulse effect” animation on a UIButton
  • Check iOS deployment target of a static library
  • iOS: Multi-line UILabel in Auto Layout
  • iOS7 Keyboard Return/Done/Search tint colour
  • 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.

    Solutions Collect From Internet About “SKErrorDomain Code=0 in In-App Purchase”

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

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