Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

XCode 13 'Product' is ambiguous for type lookup in this context #63

Open
netgfx opened this issue Oct 14, 2021 · 3 comments
Open

XCode 13 'Product' is ambiguous for type lookup in this context #63

netgfx opened this issue Oct 14, 2021 · 3 comments

Comments

@netgfx
Copy link

netgfx commented Oct 14, 2021

Describe the bug
I get an error about 'Product' is ambiguous for type lookup in this context

To Reproduce
Steps to reproduce the behavior:
Any mention of Product

Expected behavior
Not throw an error, maybe it needs to be renamed?

Screenshots
9076F1E9-F4FD-43B7-B540-691B3AD0BC4A_4_5005_c

Desktop (please complete the following information):

  • OS: iOS
  • Browser Mobile
  • Version XCode 13.0
@jbmaxwell
Copy link

Same problem here. Do you ever work this out?

@jbmaxwell
Copy link

jbmaxwell commented May 15, 2022

Just to note, I have the same apparent conflict with StoreKit, but the normal fix of just using the module to specify which one I want (e.g., InAppPurchase.Product) also fails with: 'Product' is not a member type of class 'InAppPurchase.InAppPurchase', which makes it seem like something in the way this framework is designed has put me in a corner. (Actually, I'm really not sure why the compiler thinks it's a class...?? I don't see any weird singleton design... strange...)

Did you find a workaround?

Or....

bump.

@jbmaxwell
Copy link

Okay, no, I get it. The main class in InAppPurchase is called InAppPurchase, so you can't actually use the module to narrow the scope... bummer. Only solution was to make sure StoreKit and InAppPurchase don't appear in the same file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants