Skip to content

SDK Not compiling on Xcode 26 due to deprecation warnings #5290

@BarMalka

Description

@BarMalka

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

  1. Environment
    1. Platform: iOS
    2. SDK version:
    3. StoreKit version:
      • StoreKit 1 (default on versions <5.0.0. Can be enabled in versions >=5.0.0 with .with(storeKitVersion: .storeKit1))
      • StoreKit 2 (default on versions >=5.0.0)
    4. OS version: 15.4 (24E247)
    5. Xcode version: 26.0 beta 1
    6. Device and/or simulator:
      • Device
      • Simulator
    7. Environment:
      • Sandbox
      • TestFlight
      • Production
    8. How widespread is the issue. Percentage of devices affected.
  2. Debug logs that reproduce the issue. Complete logs with Purchases.logLevel = .verbose will help us debug this issue.
Image
  1. Steps to reproduce, with a description of expected vs. actual behavior

Please fill in

  1. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

  2. Additional context
    Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions