Ios Alamofire上传仅在iphone 6s plus上崩溃

Ios Alamofire上传仅在iphone 6s plus上崩溃,ios,iphone,swift,alamofire,Ios,Iphone,Swift,Alamofire,除了iphone 6s plus之外,我的应用程序可以在所有设备上完美上传阿拉莫菲尔4.0.1版本的照片。(在9.2和10.1版本的iphone 4s、5、5s、6、7、7plus上测试) 在iphone 6s plus上,它会因以下原因崩溃: 2016-12-02 13:26:04.391264 app[22207:366529] [] nw_socket_get_input_frames recvmsg(fd 14, 1024 bytes): [54] Connection reset by

除了iphone 6s plus之外,我的应用程序可以在所有设备上完美上传阿拉莫菲尔4.0.1版本的照片。(在9.2和10.1版本的iphone 4s、5、5s、6、7、7plus上测试)

在iphone 6s plus上,它会因以下原因崩溃:

2016-12-02 13:26:04.391264 app[22207:366529] [] nw_socket_get_input_frames recvmsg(fd 14, 1024 bytes): [54] Connection reset by peer
2016-12-02 13:26:04.393678 app[22207:366529] [] nw_endpoint_flow_prepare_output_frames [3.1 52.17.90.251:443 ready socket-flow (satisfied)] Failed to use 1 frames, marking as failed
2016-12-02 13:26:04.394564 app[22207:366529] [] nw_socket_write_close shutdown(14, SHUT_WR): [57] Socket is not connected
2016-12-02 13:26:04.394945 app[22207:366529] [] nw_endpoint_flow_service_writes [3.1 52.17.90.251:443 ready socket-flow (satisfied)] Write request has 0 frame count, 0 byte count
2016-12-02 13:26:04.396875 app[22207:366613] [] __tcp_connection_write_eof_block_invoke Write close callback received error: [89] Operation canceled

这与阿拉莫菲尔无关!它是具有最大文件上载大小的NGINX。我是通过打印responseString而不是JSON发现的。它说“请求实体太大”


iPhone 6 plus中的哪个ios版本?它在ios版本10.1和9.2上崩溃。您已经为所有这些设备测试了应用程序,这意味着您使用的是iPhone模拟器还是实际设备?一个典型的图像有多大?大部分都是模拟器!测试设备:iphone 6、7和5s。碰撞最初是在6s plus设备上发现的,但也发生在6s plus模拟器上
2016-12-02 13:26:04.391264 app[22207:366529] [] nw_socket_get_input_frames recvmsg(fd 14, 1024 bytes): [54] Connection reset by peer
2016-12-02 13:26:04.393678 app[22207:366529] [] nw_endpoint_flow_prepare_output_frames [3.1 52.17.90.251:443 ready socket-flow (satisfied)] Failed to use 1 frames, marking as failed
2016-12-02 13:26:04.394564 app[22207:366529] [] nw_socket_write_close shutdown(14, SHUT_WR): [57] Socket is not connected
2016-12-02 13:26:04.394945 app[22207:366529] [] nw_endpoint_flow_service_writes [3.1 52.17.90.251:443 ready socket-flow (satisfied)] Write request has 0 frame count, 0 byte count
2016-12-02 13:26:04.396875 app[22207:366613] [] __tcp_connection_write_eof_block_invoke Write close callback received error: [89] Operation canceled
          upload.responseString { response in
             print(response.result.value)
            }