Skip to main content
Solved

EXC_BREAKPOINT crash Xcode 26 iOS 26 at Purchases.configure


Forum|alt.badge.img

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

Best answer by Eilgnaw

Eilgnaw wrote:

same here

@main
struct MyApp: App {
    init() {
        nw_tls_create_options()
    }
}

this code help me

View original
Did this post help you find an answer to your question?

3 replies

Forum|alt.badge.img
  • Author
  • New Member
  • 1 reply
  • June 11, 2025

Related https://developer.apple.com/forums/thread/787365?answerId=842938022#842938022

Commenting out all RC related code (but leaving it in SPM still) causes it to crash instead in my own code on `let configuration = URLSessionConfiguration.default`


Forum|alt.badge.img+3
  • Helper
  • 4 replies
  • June 12, 2025

same here


Forum|alt.badge.img+3
  • Helper
  • 4 replies
  • Answer
  • June 12, 2025
Eilgnaw wrote:

same here

@main
struct MyApp: App {
    init() {
        nw_tls_create_options()
    }
}

this code help me


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings