Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SubscriptionInfo collides with a new StoreKit object also named SubscriptionInfo (compiler error in Xcode 16.3 beta) #4813

Closed
theoks opened this issue Feb 22, 2025 · 3 comments
Labels

Comments

@theoks
Copy link

theoks commented Feb 22, 2025

In iOS 18.4 StoreKit introduced a new object named SubscriptionInfo. There is already a SubscriptionInfo object in the RevenueCat package, which caused a namespace collision when building with Xcode 16.3 (File PurchaseInformation.swift, line 327).

Using the package name explicitly, solves the issue.

Package version: 5.17.0

PS: It was an easy fix and I tried to create a PR but a) I couldn't push due to authorization issues, and b) when I tried to run the fastlane setup command it failed with error:

internal:/opt/homebrew/Cellar/ruby/3.4.2/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb:136:in 'Kernel#require': cannot load such file -- nokogiri (LoadError)

@theoks theoks added the bug label Feb 22, 2025
@RCGitBot
Copy link
Contributor

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@fire-at-will
Copy link
Contributor

Hi @theoks, thanks for reporting! 🙌 We're taking a look at it.

While we work on the fix, you should still be able to build the SDK with Xcode 16.2 in the meantime.

@fire-at-will
Copy link
Contributor

@theoks Version 5.18.0 has been released, which addresses the issue. I'm going to close this issue for now, but feel free to reopen it or open another issue if you see any other issues.

Thanks again for reporting! 🙌

https://github.com/RevenueCat/purchases-ios/releases/tag/5.18.0

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

No branches or pull requests

3 participants