iPhone Store Kit “Cannot connect to iTunes Store”

前端 未结 26 2307
南旧
南旧 2020-11-27 13:09

I am working on adding In-App purchases to my app.

I am able to receive the productsRequest:didReceiveResponse method, and receive the array of products

26条回答
  •  囚心锁ツ
    2020-11-27 13:51

    Figured I should share my recent experience with the same issue:

    I experienced the same problem a few days ago, where it stopped working from one day to the other. I got the following error after having authenticated with my test user(s): Error Domain=SKErrorDomain Code=0 UserInfo=0x165000 "Cannot connect to iTunes Store"

    I hadn't done any changes to the code and we couldn't think of any other changes to our iTunes account or IAP products that might've triggered the problems. The only thing that may have been related was the adding of more iTunes Test Users (although I've added ~15 accounts before without problems). I tested it on different devices and the simulator.

    I went through all the available checklists and all possible solutions (everything mentioned above as well) without any success. Finally I figured I might as well take a break from it all over the weekend, since I was drawing blanks. And oddly (and for the first time ever), doing nothing actually worked! I didn't change any code, nor did anything change on our iTunes account or the app.

    The only reasons I can think of are:

    1. Something was wrong on Apple's end.
    2. Some other time-based factor with the app, a certificate or something caused the problems.
    3. A leprechaun snuck into my office and fixed the issue.

提交回复
热议问题