iPhone Store Kit “Cannot connect to iTunes Store”

前端 未结 26 2047
南旧
南旧 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:46

    For me, the problem was fixed by uploading a binary. Since that answer was not given in this page, which seems to be among the top hits in Google, I thought I'd add it.

    0 讨论(0)
  • 2020-11-27 13:47

    Hit with the same problem, i reset my device, cross verified the identifiers, re-installed the app. Also thought the problem was, because I had changed the reference and the description of the products. In reality, I feel it is because my test user had got locked as multiple people where using the same account, and it is a possibility that the password validation failed multiple times. So I re-created another test user and in-app purchasing is back to working. Hope this helps. I was totally stumped with this error.

    0 讨论(0)
  • 2020-11-27 13:47

    make sure you're testing with sandbox user accounts created from itunesconnect and not your actual apple id for your personal account when testing this stuff.

    0 讨论(0)
  • 2020-11-27 13:48

    I had had the same problem, first of all I haven't created test account so I created via getting help from this link https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/SettingUpUserAccounts.html#//apple_ref/doc/uid/TP40011225-CH25-SW10

    Then You need to sign out from your current account on your device. and buy purchasing it will ask for user account, then enter the test account.

    0 讨论(0)
  • 2020-11-27 13:49

    I also was facing with the same error. I figured out, that the Error only comes on the Simulator, when I switched to the device debugging, the error didn't appear.

    0 讨论(0)
  • 2020-11-27 13:49

    I found myself in this situation when I was working on adding in-app purchases and didn't do it exactly right the first time. In my case I had an error in server-side PHP and as a result I think I wasn't getting all the way through to "finishTransaction:". Even after I fixed the problems (I put the program on a separate device and purchased successfully), I kept getting "You've already purchased this, click to download" followed by "Cannot connect to iTunes Store".

    I finally got it to stop doing that by launching the game from Springboard (not XCode). It immediately processed the transaction successfully and stopped prompting me to redownload.

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