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.
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>
In my case, changing the Minimum Deployment from iOS 16 to 17 worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With