我的应用程序因上述错误而崩溃。我检查了 swift 文件和故事板之间的所有连接,似乎没有任何问题。此外,调试器似乎没有打印错误消息。这就是它给我的:
2016-06-19 16:49:33.549062 Food[20053:3251540] [LogFacilityCK] Operation 8A5BA319FDEBBCBA finished
2016-06-19 16:49:33.549097 Food[20053:3251542] [] nw_endpoint_handler_cancel [1 api.parse.com:443 ready resolver (satisfied)]
2016-06-19 16:49:33.549975 Food[20053:3251542] [] nw_endpoint_handler_cancel [1.1 52.72.144.232:443 ready socket-flow (satisfied)]
2016-06-19 16:49:33.550439 Food[20053:3251540] [LogFacilityOP] Finished operation <CKQueryOperation: 0x7f8a64ea80d0; operationID=8A5BA319FDEBBCBA, stateFlags=finished, metrics=<CKOperationMetrics: 0x7f8a64ea61b0; cloudKitMetrics=<CKMetric: 0x7f8a64ea77b0; startDate=2016-06-19 08:49:03 +0000, duration=0.413, queueing=0.073, executing=1.108, bytesUploaded=369, bytesDownloaded=436, connections=1, connectionsCreated=0>>, requestIDs=(F13449B5-44D2-418F-8E68-8142C07DD8DB)>
2016-06-19 16:49:33.550856 Food[20053:3251542] [] __nw_socket_service_writes_block_invoke sendmsg(fd 9, 31 bytes): socket has been closed
libc++abi.dylib: terminating with uncaught exception of type NSException
崩溃时突出显示的行可以在下面的链接中找到(截取整个屏幕的屏幕截图以防万一,我不确定这是否有用):