Skip to main content

When i build my app on the new sdk i get a coiuple errors:


Trying to purchase a plan: ERROR: 😿‼️ There is an issue with your configuration. Check the underlying error for more details. This StoreProduct represents an SK1 product, but SK2 was expected.

 

Hi, version 5.0.0+ of our iOS SDK enables full StoreKit 2 flow on the SDK and the RevenueCat backend by default and we have our migration guide here: https://www.revenuecat.com/docs/sdk-guides/ios-native-4x-to-5x-migration

Please make sure that your In-App Purchase Key Configuration is setup. If it is and you are still getting this error please let me know.


Hi @Haley Pace, Thanks for the response. Yes I followed those docs earlier and I had confirmed that the key is setup (it has been setup prior to my migration to SDK 5 if that matters) 


Hey @deji I’m checking with the mobile team on this, I’ll let you know what they say.


@deji are you fetching products from Apple manually and then providing them to RevenueCat, for instance when using purchaseProduct? Can you share more details about when the error happens in your app?


Hi @sharif, thanks for checking! your question reminded me I had a superwall integration I needed to update as well that was using “RevenueCat.StoreProduct(sk1Product: product)” I have now resolved this issue.