Question

[SwiftUI] No such module 'Purchases'


Badge +1

I have added RevenueCat follow the guide with SPM in my project. But when I `import Purchases’, I got No such module 'Purchases' error.

Follow this link to set up API keys in project.
https://www.revenuecat.com/docs/platform-resources/apple-platform-resources/swiftui-helpers

 

 


2 replies

Badge +2

Hi @Zhou Haibo,

In your SDK version we renamed that to RevenueCat and RevenueCatUI if you are using paywalls.

Can you point me to the documentation where you found `import Purchases` so I can update it properly?

 

Thank you!

 

Joan.

Badge

Here:
https://www.revenuecat.com/docs/getting-started/configuring-sdk under SwiftUI

*Edit:

...and here: https://www.revenuecat.com/docs/platform-resources/apple-platform-resources/swiftui-helpers

Reply