Hey team - getting this crash on Xcode 26b1 (17A5241e) running on any iOS 26 simulators. I’m on the new v5.28.0 SDK.
I can’t repro this in a sample project, otherwise I would’ve posted this to Github as an Issue, not sure if it’s something in my project setup, etc.
Things I’ve tried:
- I commented out any other use of the RC SDK to make sure there wasn’t some race condition happening
- I’ve tried changing my deployment target to iOS 26 (instead of iOS 17 where I am now)
- I’ve tried some of the other configure functions including the config builder one, they all crash the same
- It’s affecting all iOS 26 sims, doesn’t crash on iOS 18 sims
- I simplified my AppDelegate to the following and still getting the crash (it crashes with a real API key or a fake one in there):
import RevenueCat
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
}
extension AppDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
Purchases.configure(withAPIKey: "redacted")
return true
}
}
Only 1 debug log:
DEBUG: ℹ️ Configuring SDK using RevenueCat's UserDefaults suite.
Stack trace:
Thread 1 Queue : com.apple.main-thread (serial)
#0 0x0000000257b8318c in 0x257b8318c ()
#1 0x0000000257b80d14 in 0x257b80d14 ()
#2 0x0000000257b80b8c in 0x257b80b8c ()
#3 0x0000000257b80b68 in 0x257b80b68 ()
#4 0x0000000257b80c98 in 0x257b80c98 ()
#5 0x0000000257b8a1bc in 0x257b8a1bc ()
#6 0x0000000257b8a8e4 in 0x257b8a8e4 ()
#7 0x0000000257b80b8c in 0x257b80b8c ()
#8 0x0000000257b80b68 in 0x257b80b68 ()
#9 0x0000000257b8a888 in 0x257b8a888 ()
#10 0x000000018931ccf4 in 0x18931ccf4 ()
#11 0x000000018931f044 in 0x18931f044 ()
#12 0x00000001888a3bfc in 0x1888a3bfc ()
#13 0x0000000184e2dd08 in -[__CFN_ConnectionContextManager registerSession:] ()
#14 0x0000000184e21ab8 in -[NSURLSession initWithConfiguration:delegate:delegateQueue:delegateDispatchQueue:] ()
#15 0x0000000184c85840 in -[__NSURLSessionLocal initWithConfiguration:delegate:delegateQueue:delegateDispatchQueue:] ()
#16 0x0000000184e22d5c in +[NSURLSession _sessionWithConfiguration:delegate:delegateQueue:delegateDispatchQueue:] ()
#17 0x00000001092a52a0 in @nonobjc NSURLSession.__allocating_init(configuration:delegate:delegateQueue:) ()
#18 0x00000001092a5114 in HTTPClient.init(...) at HTTPClient.swift:60
#19 0x00000001092a4f14 in HTTPClient.__allocating_init(...) ()
#20 0x000000010928d388 in Backend.__allocating_init(...) at Backend.swift:39
#21 0x000000010958e10c in Purchases.__allocating_init(...) at Purchases.swift:341
#22 0x00000001095a22ac in implicit closure #1 in static Purchases.configure(...) ()
#23 0x00000001095ab56c in partial apply for implicit closure #1 in static Purchases.configure(...) ()
#24 0x0000000109593940 in closure #1 in static Purchases.setDefaultInstance(_:) at Purchases.swift:770
#25 0x00000001095a828c in partial apply for closure #1 in static Purchases.setDefaultInstance(_:) ()
#26 0x0000000109268774 in closure #1 in Atomic.modify<RevenueCat.Purchases?>(...) at Atomic.swift:67
#27 0x0000000109268ae4 in partial apply for closure #1 in Atomic.modify<A>(...) ()
#28 0x0000000109269334 in Lock.perform<RevenueCat.Purchases>(...) at Lock.swift:44
#29 0x00000001092683cc in Atomic.modify<RevenueCat.Purchases?>(...) at Atomic.swift:66
#30 0x000000010959370c in static Purchases.setDefaultInstance(_:) at Purchases.swift:757
#31 0x00000001095a1520 in static Purchases.configure(...) at Purchases.swift:1660
#32 0x00000001095a12e4 in static Purchases.configure(with:) at Purchases.swift:1381
#33 0x00000001095a195c in static Purchases.configure(...) at Purchases.swift:1517
#34 0x00000001095a178c in static Purchases.configure(...) at Purchases.swift:1466
#35 0x00000001095a1714 in static Purchases.configure(...) at Purchases.swift:1442
#36 0x000000010850556c in AppDelegate.application(...) at AppDelegate.swift:23