ios16.2 系统接入微信分享,在与微信建立连接的时候失败,其他系统成功,为什么会失败?代码如下,回调结果success为YES
SendMessageToWXReq *req = [[SendMessageToWXReq alloc] init];
req.bText = YES;
req.text = text;
req.scene = WXSceneSession;
[WXApi sendReq:req completion:^(BOOL success) {
if (!success) {
[[AWHBRTools getCurrentVC] showHint:AWHBRLocalizedString(@"分享失败")];
} else {
[[AWHBRTools getCurrentVC] showHint:AWHBRLocalizedString(@"分享成功")];
}
}];
日志如下:
2024-04-13 15:56:40.113847+0800 云查车[450:10651] [tcp] tcp_input [C15.1.1:3] flags=[R] seq=3130381587, ack=1391999417, win=0 state=LAST_ACK rcv_nxt=3130381587, snd_una=3113444309
2024-04-13 15:56:40.114119+0800 云查车[450:10651] [tcp] tcp_input [C15.1.1:3] flags=[R] seq=3130381587, ack=1391999417, win=0 state=CLOSED rcv_nxt=3130381587, snd_una=3113444309
2024-04-13 15:56:42.331746+0800 云查车[450:10634] [tcp] tcp_input [C17.1.1:3] flags=[R] seq=3676955159, ack=1298787182, win=0 state=LAST_ACK rcv_nxt=3676955159, snd_una=3041620759
2024-04-13 15:56:42.332287+0800 云查车[450:10634] [tcp] tcp_input [C17.1.1:3] flags=[R] seq=3676955159, ack=1298787182, win=0 state=CLOSED rcv_nxt=3676955159, snd_una=3041620759
2024-04-13 15:56:48.830522+0800 云查车[450:10634] [tcp] tcp_input [C16.1.5:3] flags=[R] seq=3013290563, ack=0, win=0 state=ESTABLISHED rcv_nxt=3013290563, snd_una=2602398010
2024-04-13 15:56:48.834268+0800 云查车[450:10634] Connection 16: received failure notification
2024-04-13 15:56:48.834391+0800 云查车[450:10634] Connection 16: received ECONNRESET with incomplete TLS handshake - generating errSSLClosedNoNotify
2024-04-13 15:56:48.834476+0800 云查车[450:10634] Connection 16: failed to connect 3:-9816, reason -1
2024-04-13 15:56:48.834549+0800 云查车[450:10634] Connection 16: encountered error(3:-9816)
2024-04-13 15:56:56.897941+0800 云查车[450:10653] [tcp] tcp_input [C18.1.5:3] flags=[R] seq=3795436579, ack=0, win=0 state=ESTABLISHED rcv_nxt=3795436579, snd_una=1134164115
2024-04-13 15:56:56.901389+0800 云查车[450:10653] Connection 18: received failure notification
2024-04-13 15:56:56.901514+0800 云查车[450:10653] Connection 18: received ECONNRESET with incomplete TLS handshake - generating errSSLClosedNoNotify
2024-04-13 15:56:56.901596+0800 云查车[450:10653] Connection 18: failed to connect 3:-9816, reason -1
2024-04-13 15:56:56.901669+0800 云查车[450:10653] Connection 18: encountered error(3:-9816)
2024-04-13 15:56:56.902701+0800 云查车[450:10653] Task <BE4CE564-DA92-4275-8339-A504E8D386E3>.<1> HTTP load failed, 0/0 bytes (error code: -1200 [3:-9816])
2024-04-13 15:56:56.904038+0800 云查车[450:10634] Task <BE4CE564-DA92-4275-8339-A504E8D386E3>.<1> finished with error [-1200] Error Domain=NSURLErrorDomain Code=-1200 "发生了SSL错误,无法建立与该服务器的安全连接。" UserInfo={NSErrorFailingURLStringKey=https:
"LocalDataTask <BE4CE564-DA92-4275-8339-A504E8D386E3>.<1>"
), NSLocalizedDescription=发生了SSL错误,无法建立与该服务器的安全连接。, NSErrorFailingURLKey=https:
2024-04-13 15:57:04.078034+0800 云查车[450:10655] [tcp] tcp_input [C14.1.1:3] flags=[R.] seq=476648665, ack=3645831438, win=127 state=LAST_ACK rcv_nxt=476648665, snd_una=3645831438
2024-04-13 15:57:04.079465+0800 云查车[450:10655] [tcp] tcp_input [C14.1.1:3] flags=[R] seq=476648665, ack=0, win=0 state=CLOSED rcv_nxt=476648665, snd_una=3645831438
2024-04-13 15:57:04.080497+0800 云查车[450:10655] [tcp] tcp_input [C14.1.1:3] flags=[R] seq=476648665, ack=0, win=0 state=CLOSED rcv_nxt=476648665, snd_una=3645831438
2024-04-13 15:57:15.727255+0800 云查车[450:10419] [BackgroundTask] Background Task 2 ("TaskID"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
2024-04-13 15:57:24.051425+0800 云查车[450:10974] [tcp] tcp_input [C19.1.5:3] flags=[R] seq=3149601335, ack=0, win=0 state=ESTABLISHED rcv_nxt=3149601335, snd_una=3041515354
2024-04-13 15:57:24.055044+0800 云查车[450:10974] Connection 19: received failure notification
2024-04-13 15:57:24.055172+0800 云查车[450:10974] Connection 19: received ECONNRESET with incomplete TLS handshake - generating errSSLClosedNoNotify
2024-04-13 15:57:24.055320+0800 云查车[450:10974] Connection 19: failed to connect 3:-9816, reason -1
2024-04-13 15:57:24.055407+0800 云查车[450:10974] Connection 19: encountered error(3:-9816)