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

Fix SDK Compilation on Xcode 16.3/iOS 18.4 Beta 1 #4814

Merged
merged 1 commit into from
Feb 22, 2025

Conversation

fire-at-will
Copy link
Contributor

@fire-at-will fire-at-will commented Feb 22, 2025

Motivation

This PR addresses GH issue #4813. Apple released iOS 18.4 beta 1 and Xcode 16.3, which introduces the SubscriptionInfo typealias. This caused a name resolution conflict in PurchaseInformation.swift where the extension on SubscriptionInfo can't tell if it should resolve to StoreKit.SubscriptionInfo or RevenueCat.SubscriptionInfo.

Screenshot 2025-02-21 at 10 15 27 PM

Description

This PR makes the extension's reference to SubscriptionInfo explicitly reference RevenueCat.SubscriptionInfo, which resolves the compilation issue.

Note to the Reviewer

Our iOS 18 CI jobs aren't using Xcode 16.3 yet, so just because this PR passes CI doesn't necessarily mean it will work. I've tested and confirmed that RevenueCatUI on this branch builds for me on Xcode 16.3, but would appreciate it if you could try building as well to be safe.

@fire-at-will fire-at-will added the pr:fix A bug fix label Feb 22, 2025
@fire-at-will fire-at-will marked this pull request as ready for review February 22, 2025 03:08
@fire-at-will
Copy link
Contributor Author

@RCGitBot please test

@fire-at-will fire-at-will requested review from MarkVillacampa and a team February 22, 2025 04:12
Copy link
Member

@ajpallares ajpallares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix @fire-at-will! I have checked and this works for me with Xcode 16.3 beta whereas it doesn't without the change 👍

@fire-at-will fire-at-will merged commit 33e0a78 into main Feb 22, 2025
38 checks passed
@fire-at-will fire-at-will deleted the compile-on-ios18-4-beta branch February 22, 2025 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:fix A bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants