TwilioChatClient 在 CFNetwork/web 套接字中崩溃,EXC_BAD_ACCESS

TwilioChatClient crash in CFNetwork/web socket, EXC_BAD_ACCESS

我正在使用最新的 TwilioChatClient 版本 5.0.0

每次我尝试使用访问令牌登录时,登录功能都会崩溃,但是在 Twilio 提供的快速启动项目中不会发生这种崩溃。

这是我从符号化的崩溃日志中得到的。

Thread 5 name:
Thread 5 Crashed:
0   CFNetwork                       0x000000018d252da0 -[__NSURLSessionWebSocketTask _onqueue_enableWebSocketFraming:] + 468 (LocalWebSocketTask.mm:223)
1   CFNetwork                       0x000000018d252d94 -[__NSURLSessionWebSocketTask _onqueue_enableWebSocketFraming:] + 456 (LocalWebSocketTask.mm:221)
2   CFNetwork                       0x000000018d251ed0 -[__NSURLSessionWebSocketTask _onqueue_didReceiveResponse:completion:] + 2096 (LocalWebSocketTask.mm:663)
3   CFNetwork                       0x000000018d09ad04 __67-[__NSCFLocalSessionTask connection:didReceiveResponse:completion:]_block_invoke + 168 (LocalSessionTask.mm:1205)
4   CFNetwork                       0x000000018d071ce4 -[__NSCFLocalSessionTask connection:didReceiveResponse:completion:] + 280 (LocalSessionTask.mm:1149)
5   CFNetwork                       0x000000018d10c61c __59-[__NSCFURLLocalSessionConnection _sendResponseToDelegate:]_block_invoke + 96 (SessionConnection.mm:1005)
6   CFNetwork                       0x000000018d10c5ac -[__NSCFURLLocalSessionConnection _sendResponseToDelegate:] + 120 (SessionConnection.mm:999)
7   CFNetwork                       0x000000018d0738e8 -[__NSCFURLLocalSessionConnection _tick_sniffNow] + 284 (SessionConnection.mm:796)
8   CFNetwork                       0x000000018d0778dc -[__NSCFURLLocalSessionConnection _tick] + 324 (SessionConnection.mm:812)
9   CFNetwork                       0x000000018d072d0c -[__NSCFURLLocalSessionConnection _didFinishWithError:] + 236 (SessionConnection.mm:1190)
10  CFNetwork                       0x000000018d10d9fc invocation function for block in SessionConnectionLoadable::withLoaderClientAsync(void (LoaderClientInterface*) block_pointer) + 28 (SessionConnection.mm:91)
11  libdispatch.dylib               0x000000018c6763e4 0x18c666000 + 66532
12  libdispatch.dylib               0x000000018c6c7298 0x18c666000 + 397976
13  libdispatch.dylib               0x000000018c66fa40 0x18c666000 + 39488
14  libdispatch.dylib               0x000000018c670548 0x18c666000 + 42312
15  libdispatch.dylib               0x000000018c679fac 0x18c666000 + 81836
16  libsystem_pthread.dylib         0x00000001d4edd5bc _pthread_wqthread + 272 (pthread.c:2437)
17  libsystem_pthread.dylib         0x00000001d4ee086c start_wqthread + 8

我已经联系了支持人员,但我们找不到崩溃背后的真正原因。不幸的是,它不是开源的,所以我无法在框架内调试崩溃。

经过一番调试,发现还有一个pod和这个冲突,叫Netfox

我相信两者都在使用网络套接字,并且不知何故它们相互冲突。