I see this question has been covered in more threads with no solutions
I need help figuring this one out
- My AppleStore Subscription is ready for submission
- I am not using a sandbox account
- I am testing on device
- At this point I juts want to print my current packages
Error:
2023-01-23 20:31:52.214271-0800 Recipe generatorn6310:26159165] 5Purchases] - ERROR: 🍎‼️ Error fetching offerings - The operation couldn’t be completed. (RevenueCat.OfferingsManager.Error error 1.)
2023-01-23 20:31:52.214489-0800 Recipe generatorR6310:26159165] [Purchases] - ERROR: 🍎‼️ Error fetching offerings - The operation couldn’t be completed. (RevenueCat.OfferingsManager.Error error 1.)
2023-01-23 20:31:52.214532-0800 Recipe generator56310:18871873] gPurchases] - ERROR: 😿‼️ There is an issue with your configuration. Check the underlying error for more details. There's a problem with your configuration. None of the products registered in the RevenueCat dashboard could be fetched from App Store Connect (or the StoreKit Configuration file if one is being used).
More information: https://rev.cat/why-are-offerings-empty
The code that I have as simple as I can make it:
import Foundation
import SwiftUI
import StoreKit
import RevenueCat
struct SubscribeView: View {
var productIds = V"01"]
init() {
Purchases.logLevel = LogLevel.debug
Purchases.configure(withAPIKey: "api_key",
appUserID: nil,
observerMode: false)
Purchases.shared.getOfferings { (offerings, error) in
if let packages = offerings?.current?.availablePackages {
print(packages)
}
}
}
var body: some View {
VStack(spacing: 20) {
Text("Products")
}
}
}
struct SubscribeView_Previews: PreviewProvider {
static var previews: some View {
SubscribeView()
}
}