iPhone Store Kit “Cannot connect to iTunes Store”

前端 未结 26 2048
南旧
南旧 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 14:03

    I had been getting the same error but I had been prompted for my test user account. And also a popup saying "An unknown error has occurred". It turns out that when I created my test user account and signed out of the settings -> store I had decided to sign in with my test user account which had prompted me for a bunch of information including billing, which had broken my test user account. When I created a new test user account and only signed in when prompted to during the in app purchase testing, everything worked smoothly.

    0 讨论(0)
  • 2020-11-27 14:04

    I had had the same problem, but I solved by the following mode:
    - I was using iPhone 5S emulator with iOS 8.4 (This is the most important. Apple Store connection is not working on iOS 11 emulator)
    - on emulator I turned on the following setting: Settings/Developer/Allow HTTP services (This is for internet connection)
    - temporarily I turned off Avast antivirus Web Shield (This is for internet connection too)

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