Closed sparsh-codes closed 3 months ago
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
Hi, to fix this you have a couple of options:
Purchases.StoreProduct
instead of just StoreProduct
typealias RCStoreProduct = RevenueCat.StoreProduct
typealias SWStoreProduct = SuperwallKit.StoreProduct
Hi @sparsh-codes, Looks like this issue hasn't had any updates recently so I closed it. If Haley's comment didn't help or you're still experiencing this issue, please feel free to reopen it.
This issue has been automatically locked due to no recent activity after it was closed. Please open a new issue for related reports.
Describe the bug
I am using
func purchases(_ purchases: Purchases, readyForPromotedProduct product: StoreProduct, purchase startPurchase: @escaping StartPurchaseBlock) { }
for its intended purpose, but after integrating SuperwallKit 3.0, I am receiving the error - 'StoreProduct' is ambiguous for type lookup in this context.What I observed is StoreProduct is defined in both the frameworks, creating this ambiguity.
Environment
usesStoreKit2IfAvailable(true)
)Purchases.logLevel = .verbose
will help us debug this issue.ode version: 15.2Debug logs that reproduce the issue. Complete logs with
Purchases.logLevel = .verbose
will help us debug this issue.readyForPromotedProduct
function via guideline available at https://github.com/RevenueCat/purchases-ios/blob/1e121367100877b8d08157be29b1f559890a195b/Tests/UnitTests/Mocks/MockPurchasesDelegate.swift#L24