RevenueCat / purchases-ios

In-app purchases and subscriptions made easy. Support for iOS, watchOS, tvOS, macOS, and visionOS.
https://www.revenuecat.com/
MIT License
2.32k stars 315 forks source link

'StoreProduct' is ambiguous for type lookup in the context when using RevenueCat with Superwall-iOS v.3.6.3 #3918

Closed sparsh-codes closed 3 months ago

sparsh-codes commented 4 months ago

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.

Screenshot 2024-05-25 at 1 57 10 PM

What I observed is StoreProduct is defined in both the frameworks, creating this ambiguity.

Screenshot 2024-05-25 at 2 00 00 PM

  1. Environment

    1. Platform: iOS
    2. SDK version: 4.41.2
    3. StoreKit version:
      • [x] StoreKit 1
      • [ ] StoreKit 2 (enabled with usesStoreKit2IfAvailable(true))
    4. OS version: 17.4.1
    5. XcComplete logs with Purchases.logLevel = .verbose will help us debug this issue.ode version: 15.2
    6. Device and/or simulator:
      • [x] Device
      • [ ] Simulator
    7. Environment:
      • [x] Sandbox
      • [ ] TestFight
      • [ ] Production
    8. How widespread is the issue. Percentage of devices affected. - N/A
  2. Debug logs that reproduce the issue. Complete logs with Purchases.logLevel = .verbose will help us debug this issue.

No logs generated, since the application does not compile.
  1. Steps to reproduce, with a description of expected vs. actual behavior
  1. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
N/A
  1. Additional context
    N/A
RCGitBot commented 4 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!

HaleyRevcat commented 4 months ago

Hi, to fix this you have a couple of options:

mshmoustafa commented 3 months ago

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.

github-actions[bot] commented 3 months ago

This issue has been automatically locked due to no recent activity after it was closed. Please open a new issue for related reports.