“Cannot connect to iTunes Store” in-app purchases

前端 未结 17 2347
鱼传尺愫
鱼传尺愫 2020-12-01 06:13

I am having problems testing my in-app purchases. I get back valid product identifiers, but upon purchase I receive the dreaded \"Cannot connect to iTunes Store\". Interesti

相关标签:
17条回答
  • 2020-12-01 06:36

    I've been having this problem and I'm convinced its a bug. I've filed a bug report with Bug Id 10108270

    The problem seems to be that the test user is getting 'locked' and may have something to do with attempting to purchase an in app purchase in an already released app with that account.

    My workaround was to create a new test user but until Apple get back to me, I can't provide any better solutions. I'll update this answer when I get replies.

    0 讨论(0)
  • 2020-12-01 06:36

    The same issue got for me, and I had checked on the issue including Apple form, I couldn't find a solution.

    Today when I checking the device I found that the following

    In Device Settings -> iTunes & App Store found another Apple Id logged In. So I tried signOut that and checked again the InApp purchase, it worked perfectly. So please check the issue is linked to the same or not.

    Thanks & Regards, Unnikrishnan.P

    0 讨论(0)
  • 2020-12-01 06:40

    You may also be getting this error when reusing an old sandbox account you tested a previous IAP on another app with (My scenario). Apple really needs to update the way we test IAPs, I'm running out of emails :0

    0 讨论(0)
  • 2020-12-01 06:40

    This error also had occurred when to SKProductsRequest passed wrong NSSet:

    Wrong:

    let products = NSSet(objects: ["id1", "id2"])
    

    Correct:

    let products = NSSet(objects: "id1", "id2")
    
    0 讨论(0)
  • 2020-12-01 06:44

    In my case, I just forgot to handle .failed in transactionState. In particular, SKPaymentQueueue.default().finishTransaction(transaction).

    0 讨论(0)
提交回复
热议问题