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 -> ()

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"

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?

URLSessionWebSocketTask Crash
 
 
Q