iPhone Store Kit “Cannot connect to iTunes Store”

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

    As Apple's Documentation:

    Cannot connect to iTunes Store The "Cannot connect to iTunes Store" issue may be due to one or more of the following reasons:

    1. The sandbox may be unreachable.
    2. Your app does not have a bundle version (CFBundleVersion). See Setting the Version Number and Build String for more information.
    3. Your app is running in the Simulator, which does not support in-app purchase.
    4. You are attempting to purchase a product that is unavailable for sale. See Query the App Store for product information before presenting your app’s store UI for more information.

    https://developer.apple.com/library/content/technotes/tn2413/_index.html

提交回复
热议问题