Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App crashes on launch under iOS 26 with EXC_BREAKPOINT when using URLSession

I am trying to build my current application with the new Xcode 26 beta on iOS 26 beta simulator and the app crashes on all 3rd party SDKs on their initialization. The error is always the same:

Thread 1: EXC_BREAKPOINT (code=1, subcode=0x257b8223c)

In 1 of our 3rd Party SDKs the error is in

public init(config: SDKConfig,
                urlSession: URLSessionProtocol = URLSession(configuration: .ephemeral))

on URLSession.

All our SDKs are coming from SPM.

Does this means I have to wait until all the SDKs are built with the new Xcode 26 Beta or there is another way to make it work?

I am still using Swift 5, not Swift 6.

On real device the application is running without crashes.

like image 224
Altimir Antonov Avatar asked Nov 17 '25 01:11

Altimir Antonov


2 Answers

nw_tls_create_options() in AppDelegate and changing TLS from 1.0 to 1.2 in Info.plist solves the issue

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSExceptionAllowsInsecureHTTPLoads</key>
    <true/>
    <key>NSExceptionMinimumTLSVersion</key>
    <string>TLSv1.2</string>
</dict>
like image 50
avgx Avatar answered Nov 19 '25 15:11

avgx


In my case, changing the Minimum Deployment from iOS 16 to 17 worked.

like image 35
Silicon Fox Avatar answered Nov 19 '25 13:11

Silicon Fox



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!