SKErrorDomain Code=0 “Cannot connect to iTunes Store”

38,590

Solution 1

This can happen because of the two problems i guess.

  • Make sure you have placed the correct "Product Identifier".If that's the case, then you'll get error 0 shortly after calling -[SKPaymentQueue addPayment:], before you get the popup asking you to confirm payment.

  • Your test user has become invalidated. This can happen if you accidentally log into the App Store with your test user. When this happens, you'll get error 0 after entering your password to confirm your payment.

To fix problem #1, pass in the correct product ID. To fix problem #2, create a new test user on iTunes Connect, and optionally delete the old test user.

Hope this helps you.

Solution 2

I was getting the same error while testing subscriptions, was able to get it to work by adding a Localization (Subscription Display Name and Description) to the product from iTunes connect.

Solution 3

Check if you sign out of the iTunes Store. To sign out, follow these steps:

  1. Open the Settings App
  2. Tap the “Store” row
  3. Tap “Sign Out”

Solution 4

you can check few things and verify it.

Verify following things :

(1) your App's Bundle ID. it should be same as you created in iTunes store in which you have added In App Purchases.

(2) Check Your In App Identifier Name, which you use in Application.

If any of these is not matching it would throw Error Domain=SKErrorDomain Code=0 “Cannot connect to iTunes Store exception.

Share:
38,590
Ansari
Author by

Ansari

#SOreadytohelp

Updated on August 04, 2022

Comments

  • Ansari
    Ansari almost 2 years

    My application has just gone live on the iTunes Store, and after that, I am unable to start any purchase. I have tested the application and its working fine in Sandbox envoirnemnt. But Live application gives the error

    Error Domain=SKErrorDomain Code=0 “Cannot connect to iTunes Store

    enum value = SKErrorUnknown

    I have tried signing out any test accounts from Store login, but it just doesn't ask for any account login and error keeps on coming. Any clue!