Iām making an attempt to retrieve my in-app buy merchandise utilizing SwiftyStoreKit in Swift.
let ids: Set = [monthly_InApp, yearly_InApp, lifetime_InApp]
SwiftyStoreKit.retrieveProductsInfo(ids) { end in
if outcome.retrievedProducts.depend > 1 {
for product in outcome.retrievedProducts {
if product.productIdentifier == monthly_InApp {
Popup.present(message: "(product.productIdentifier)", title: "retrievedProducts")
self.monthly_Price_Str = product.localizedPrice ?? ""
self.monthly_Price = Double(truncating: product.value)
} else {
Popup.present(message: "(product.productIdentifier)", title: "retrievedProducts")
self.yearly_Price_Str = product.localizedPrice ?? ""
self.yearly_Price = Double(truncating: product.value)
}
}
}
if outcome.error != nil {
// Popup.present(message: "(outcome.error)", title: "error")
}
if outcome.invalidProductIDs.depend > 0 {
// Popup.present(message: "(outcome.invalidProductIDs)", title: "invalidProductIDs")
}
}
After I run this, I all the time get my product IDs in invalidProductIDs.
I additionally tried utilizing SKProductsRequest straight, and I see the identical factor:
Invalid IDs from SKProductsRequest: ["com.mkkriti.monthly", "com.mkkriti.yearly"]
What Iāve checked thus far:
My product IDs in App Retailer Join are precisely:
com.mkkriti.month-to-month
com.mkkriti.yearly
In App Retailer Join the product standing reveals Able to Submit.
Bundle identifier in Xcode matches the one in App Retailer Join.
In-App Buy functionality is enabled in Xcode.
Testing on an actual machine (not simulator).
Query:
Why do my legitimate product IDs nonetheless present up as invalid when retrieving merchandise?