我正在iOS 12.1的UDP NWConnection上调用此函数:
func receiveMessage(completion: @escaping (Data?, NWConnection.ContentContext?, Bool, NWError?) -> Void)
并获得以下结果:
nw_protocol_ipv4_process_reassembly [C1:2] Failed to reassemble IP ID 58517, dropping 1 frames
它在模拟器中完美运行,但在同一网络上的iPhone X上无法运行。
感谢您的帮助!