Skip to content

SKProductsRequestDelegate & SKPaymentTransaction deprecation warnings on Xcode 26 targeting iOS 26 #47

@Kareem-Badr

Description

@Kareem-Badr

Describe the bug

Warnings when building with the Branch SDK on Xcode 26, targeting iOS 26.
It gives warnings on the latest version 3.13.1 on CocoaPods and SPM
warnings:

  • "'SKProductsRequestDelegate' is deprecated: first deprecated in iOS 18.0 - Get products using Product.products(for:)"
  • "'SKProductsRequestDelegate' is deprecated: first deprecated in iOS 18.0 - Get products using Product.products(for:)"

If the "Treat Warnings as Errors" build setting is enabled, the build will fail with this error:

  • "failed to emit precompiled module '/Users/user/Library/Developer/Xcode/DerivedData/Pivot-cvnzkbtiruqtlcdgfnbcaocdnyaq/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules/BranchSDK-2NKP3CZV61A57PIJPGLFN3243.pcm' for module map '/Users/user/Library/Developer/Xcode/DerivedData/-cvnzkbtiruqtlcdgfnbcaocdnyaq/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/BranchSDK.modulemap'
Image Image Image Image Image Image

Steps to reproduce

  1. Integrate the latest Branch SDK 3.13.1 into a project using SPM or CocoaPods
  2. Build on Xcode 26, targeting iOS 26 on an iPhone 17 simulator
  3. Warnings will show up, and the build should fail with the mentioned errors when the "Treat Warnings as Errors" build setting is enabled.

Expected behavior

The project should build without warnings

SDK Version

3.4.3 - 3.13.1

XCode Version

26

Device

iPhone 17 simulator

OS

iOS 26

Additional Information/Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions