Skip to main content
Question

[SwiftUI] No such module 'Purchases'


Forum|alt.badge.img+2

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

 

 

This post has been closed for comments

2 replies

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 207 replies
  • May 17, 2024

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.


Forum|alt.badge.img+1

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings