SKErrorDomain Code=0 “Cannot connect to iTunes Store”

前端 未结 6 922
无人共我
无人共我 2021-01-03 20:11

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 envoi

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-03 20:37

    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.

提交回复
热议问题