2022-12-19 11:01:41.459551+0800 CarSteward[4245:1763260] [tcp] tcp_input [C14.1:3] flags=[R] seq=1278556427, ack=3837105229, win=0 state=LAST_ACK rcv_nxt=1278556427, snd_una=2104551797
2022-12-19 11:01:41.460895+0800 CarSteward[4245:1763260] [tcp] tcp_input [C14.1:3] flags=[R] seq=1278556427, ack=3837105229, win=0 state=CLOSED rcv_nxt=1278556427, snd_una=2104551797
2022-12-19 11:01:41.686180+0800 CarSteward[4245:1763247] [tcp] tcp_input [C16.1:3] flags=[R] seq=3861459285, ack=2478972486, win=0 state=LAST_ACK rcv_nxt=3861459285, snd_una=1171849274
2022-12-19 11:01:41.687120+0800 CarSteward[4245:1763247] [tcp] tcp_input [C16.1:3] flags=[R] seq=3861459285, ack=2478972486, win=0 state=CLOSED rcv_nxt=3861459285, snd_una=1171849274
解决办法 :Xcode -> Product -> Scheme -> Edit Scheme -> Run -> Arguments -> Environment Variables -> 添加环境变量即其值:OS_ACTIVITY_MODE = disable
截图