URLSessionWebSocketTask Crash

My app crashed when launch.

The crash report:

OS Version:          iPhone OS 15.4 (19E5209h)
Release Type:        Beta
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: DYLD 4 Symbol missing
Symbol not found: _$sSo25NSURLSessionWebSocketTaskC10FoundationE4sendyyAbCE7MessageOYaKF
Referenced from: /private/var/containers/Bundle/Application/43FB5827-DE90-4FCF-A716-11A7FD5BE11E/Kingbox.app/Kingbox
Expected in: /usr/lib/swift/libswiftFoundation.dylib
(terminated at launch; ignore backtrace)

Triggered by Thread:  0


Thread 0 Crashed:
0   dyld                          	0x00000001056506d0 __abort_with_payload + 8
1   dyld                          	0x00000001056562c8 abort_with_payload_wrapper_internal + 104 (terminate_with_reason.c:102)
2   dyld                          	0x00000001056562fc abort_with_payload + 16 (terminate_with_reason.c:124)
3   dyld                          	0x00000001056267e8 dyld4::halt(char const*) + 328 (DyldProcessConfig.cpp:2067)
4   dyld                          	0x0000000105623920 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3560 (dyldMain.cpp:0)
5   dyld                          	0x0000000105621c84 start + 488 (dyldMain.cpp:864)

Demangle the symbol: _$sSo25NSURLSessionWebSocketTaskC10FoundationE4sendyyAbCE7MessageOYaKF

(extension in Foundation):__C.NSURLSessionWebSocketTask.send((extension in Foundation):__C.NSURLSessionWebSocketTask.Message) async throws -> ()

Replies

15.4 current is beta version

My app crashed when launch.

Is this your existing shipping app? Or an app you’re developing right now?

If it’s your existing shipping app, then you should run, not walk, to Feedback Assistant and file a bug report. That’s the whole point of the beta programme. And please post your bug number, just for the record

If this is an app you’re currently developing, we should probably dig into this in a bit more detail.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • I ran into the same issue and solved it by using Xcode 13.3 beta 3. I had created a bug report in Feedback Assistant with the Feedback ID FB9943776 which I have now closed.

Add a Comment

Did you ever solve this? I am running into the same error on macOS and iOS versions of an app I am developing (currently using 15.4 beta and 12.3 beta)...

This only happens if I reference the async await version of URLSessionWebSocketTask.send(_:), the crash occurs whether or not it actually gets called. The same happens for URLSessionWebSocketTask.receive().

Strangely the non async/await versions of these do work (URLSessionWebSocketTask.send(_:completionHandler:) and URLSessionWebSocketTask.receive(completionHandler:)).

I found that the solution is using the Xcode 13.3 beta (I specifically used beta 3).

Anyone has tested it using iOS 15.4 RC?

  • My last test was on the last iOS 15.4 beta (19E5241a) and it seems to work fine. Will post again when the RC finishes installing.

  • Just tested with Xcode 13.3 RC and iOS 15.4 RC and it seems to work fine.

  • Thanks.

Add a Comment