The version of Swift in the first Xcode 11 beta appears to be swiftlang-122.214.171.124. I'm assuming Apple put the wrong version of Swift 5.1 beta in Xcode.
I've been getting this error randomly since I recently used URLSessionWebSocketTask, which causes my program to crash every time:
Fatal error: Only one of message or error should be nil
But I can't find a specific way to reproduce it, because I have no idea. It doesn't seem to be caused by network quality or any unsafe code I wrote.
So I'd like to ask, have you guys encountered this error recently? I need to know if it's caused by the SDK.
Xcode 11.3.1 (11C504)
macOS 10.15.3 (19D76)
iOS 13.3.1 (17D50)