SDK Not compiling on Xcode 26 due to deprecation warnings
- [X] I have updated Purchases SDK to the latest version
- [X] I have read the Contribution Guidelines
- [X] I have searched the Community
- [X] I have read docs.revenuecat.com
- [X] I have searched for existing Github issues
Describe the bug
Our project is configured with SWIFT_TREAT_WARNINGS_AS_ERRORS = YES.
When I was compiling our project in Xcode 26, under the current latest release (5.28.1) I am getting multiple deprecation errors (warnings). Here's a few:
'SKPaymentTransaction' is deprecated: first deprecated in iOS 18.0 - Use PurchaseResult from Product.purchase(confirmIn:options:)
'SKPaymentQueueDelegate' is deprecated: first deprecated in iOS 18.0 - No longer supported
'SKPaymentTransactionObserver' is deprecated: first deprecated in iOS 18.0 - Use StoreKit 2 Transaction APIs
See screenshot below
- Environment
- Platform: iOS
- SDK version:
- StoreKit version:
- [ ] StoreKit 1 (default on versions <5.0.0. Can be enabled in versions >=5.0.0 with
.with(storeKitVersion: .storeKit1)) - [x] StoreKit 2 (default on versions >=5.0.0)
- [ ] StoreKit 1 (default on versions <5.0.0. Can be enabled in versions >=5.0.0 with
- OS version:
15.4 (24E247) - Xcode version:
26.0 beta 1 - Device and/or simulator:
- [ ] Device
- [ ] Simulator
- Environment:
- [ ] Sandbox
- [ ] TestFlight
- [ ] Production
- How widespread is the issue. Percentage of devices affected.
- Debug logsΒ that reproduce the issue. Complete logs with
Purchases.logLevel = .verbosewill help us debug this issue.
- Steps to reproduce, with a description of expected vs. actual behavior
Please fill in
-
Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
-
Additional context Add any other context about the problem here.
π We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
Hi! Thank you for opening the issue @BarMalka! This is Antonio from the CoreSDK team.
I tried to reproduce this scenario in a Sample app I created from scratch and I could only do it when adding purchases-ios as a XCFramework directly, but not when adding the dependency through Cocoapods or Swift Package Manager. Just to be sure, how are you adding the purchases-ios dependency? If you're not using the XCFramework approach, I'll need some more information to be able to reproduce it. What version of macOS? Is your project Swift only or does it contain Objetive-C code as well?
Hi @ajpallares ππ» Thanks for the update! We are indeed using the framework as xcframework. I used macOS 15.4 when I opened the ticket. Now I'm running macOS Tahoe 26 beta 1.
Is there any additional information you need?
Thanks for the quick reply @BarMalka!
You're using XCFramework, which also reproduced it for me. So no more info needed. I was afraid that you were encountering the compilation issues with a different way to add the purchases-ios dependency.
Have you considered adding purchases-ios via Swift Package Manager? It could be a good temporary workaround until we find a way to remove the warnings.
Thanks @ajpallares We can do workaround for now. I'm glad you guys are aware of the deprecation now and we'll be waiting for the fix ππ»
Thank you
@ajpallares Any news regarding this? We will need this fixed soon! ππ»
Closing as the fix for this was included in the v5.39.1 release.
@BarMalka thank you again for reporting this and do let us know if you face into some related issue!
Closing as the fix for this was included in the v5.39.1 release.
@BarMalka thank you again for reporting this and do let us know if you face into some related issue!
Thanks @ajpallares Amy idea why would I get this error? I am using the latest version of the SDK 5.93.3
Amy idea why would I get this error? I am using the latest version of the SDK 5.93.3
I'm guessing you're referring to https://github.com/RevenueCat/purchases-ios/issues/5585? I'm currently addressing that issue, but we can continue the conversation in that issue π
@ajpallares sorry yes i am on the go so didnt notice the context!