Skip to main content
Question

Compilation error with Xcode 26 beta 1

  • June 9, 2025
  • 8 replies
  • 924 views

Forum|alt.badge.img+3

I am trying to build my app with Xcode 26 beta 1. RevenueCat is generating errors:

For many functions, I’m getting this error.

“Concurrency is only available in iOS 13.0.0 or newer”

 

Here is an example of the code in Obsoletions.

    func paymentDiscount(for discount: SKProductDiscount,

                         product: SKProduct) async throws -> SKPaymentDiscount {

        fatalError()

    }

 

I am using RevenueCat 4.43.3

Is there a way I can avoid these errors - I am not ready to move to RC 5.x yet.

My code supports iOS 16 or later.

This post has been closed for comments

8 replies

Forum|alt.badge.img+3

Also happens with the latest 4.x (4.43.6)


Forum|alt.badge.img+3

I have problems with the latest 5.x SDK as well.


  • New Member
  • June 10, 2025

Same here. v4.41.1.


  • New Member
  • June 10, 2025

  • New Member
  • June 11, 2025

sdk version 5.28.0 has been released yesterday which resolve this issue. 

Related - https://github.com/RevenueCat/purchases-ios/issues/5255

 

 


Forum|alt.badge.img+3

Can we get a fix for 4.x? I’m not ready to move to 5.x yet.


antonio.pallares
RevenueCat Staff
Forum|alt.badge.img

Hi! Antonio here, from the RevenueCat’s CoreSDK team. Thank you for the report! Let’s try to pinpoint the cause of this so that we can work on a fix.

I’ve tried to reproduce the compilation errors using Xcode 26 Beta 1 and I wasn’t able so far. I’ve created some sample projects from scratch using purchases-ios v4.43.6 and I could build them properly. I tried these combinations:

  • Set the minimum deployment version to iOS 16
  • Built and ran in multiple iOS simulators (including iOS 26, iOS 18 and iOS 16)
  • In Build Settings, set Swift Language Version to Swift 5 and also to Swift 6
  • Added RevenueCat with Swift Package Manager and also with Cocoapods

and I didn’t encounter the build error mentioned in this thread.

Could you share more details about when the issue happens?

  • What version of macOS are you using?
  • What are your build settings?
  • If you’re using Cocoapods, could you share the relevant sections of the Podfile?
  • Ideally, it would be extremely helpful if you could share a Sample project where the issue is reproducible.

Happy to take a look once we have that info!


Forum|alt.badge.img+5
  • New Member
  • June 25, 2025

Thanks Antonio for looking into the issue for SDK v4. I am encountering this issue myself on a legacy XCode project with base deployment of 15.0. However, when I try to recreate the issue from a fresh XCode project, the issue does not appear. 🤷

 

I have “fixed” the issue by forking Package.swift to have a minimum iOS version support of 13.0.

There may be unintended new checks with XCode 26 with Concurrency support, and the original minimum iOS 11.0 may no longer be allowed.