Fetching Products from Storekit returns 0

Product.products(for: Set([“myProductId1”, “myProductId2”])

is returning 0. But I have configured non renewable subscriptions in Appstoreconnect. Can you help me fix this?

To eliminate App Store Connect and the Store, can you confirm you have validated your app logic and products with Xcode using the StoreKit configuration https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/testing_in-app_purchases_in_xcode

I am having a similar problem I am able to get everything working fine with my consumable products locally using my StoreKitConfiguration file. But when I upload a build to Testflight I am not able to see my products since they don't load at all via Testflight or even with a sandbox account attached signed in on my iPhone to test locally via Xcode. I just seem to be getting the following warning below. I'm using Xcode 14.0.1

[StoreKit] Did not receive any products or error for products request.

Below is a snippet of my code that i'm using also.


    /// Get all of the products that are on offer

    func retrieveProducts() async {

        do {

            let products = try await Product.products(for: myTipProducts)

            items = products.sorted(by: { $0.price < $1.price })

        } catch {

            action = .failed(.system(error))

            print(error)

        }

    }

What's even stranger is that the products for function isn't even throwing an error

When using sandbox or TestFlight, you need to configure tour products with a price in App Store Connect.

Hi I have done that & i’m still facing the same issue

Suggest gathering screenshots/video, sysdiagnose and provide all your details (app, IAP ID’s, apple ID’s, etc.) and file a ticket feedbackassistant.apple.com

Fetching Products from Storekit returns 0
 
 
Q