Skip to main content
Question

Package Resolution Failed


Forum|alt.badge.img+1

Trying to add the RevenueCat SDK as a Swift Package on Xcode 12.3 for iOS on Catalina after specifying dependency rule  as suggested the error “because purchases-ios  >= 4.0.0-beta.9 contains incompatible tools version and root depends on purchases-ios 4.0.0..<5.0.0, version solving failed” appears . How can work around this?

This post has been closed for comments

3 replies

Forum|alt.badge.img+1
  • Author
  • New Member
  • 3 replies
  • June 1, 2022

This problem has been reported before at

 and the fix was to specify the version number exactly as shown below

Package was then installed and the project Navigator shows a section Swift Package Dependencies in which is a folder RevenueCat 4.0.0-beta.1 containing many other folders and files. However, if I add ‘import RevenueCat’ to my project file AppDelegate.swift, I get a ‘No such module’ error. What do I have to do to use the package?


Forum|alt.badge.img+1
  • Author
  • New Member
  • 3 replies
  • June 1, 2022

After installing via the Swift Package Manager RevenueCat appears in the Target Frameworks, Libraries and Embedded list  as RevenueCat (no .framework) and the Embed entry is blank rather than Do Not Embed with options of Embed & Sign, Embed without Signing. The RevenueCat icon is present and different from the other icons.


Forum|alt.badge.img+1
  • Author
  • New Member
  • 3 replies
  • June 2, 2022

The problem appears to be that v 4.0.0-beta is not compatible with Xcode 12.3. If I use the exact dependency rule to install v3.12.6, I can import a module named Purchases (but not RevenueCat)


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