美文网首页
xCode8更新后控制台输出事件太多解决

xCode8更新后控制台输出事件太多解决

作者: 4陈雨泽4 | 来源:发表于2016-10-11 15:40 被阅读68次

1.common+/ 不能注释了

这个是因为苹果解决xcode ghost。把插件屏蔽了。解决方法

命令运行:

sudo /usr/libexec/xpccachectl

然后必须重启电脑后生效

2.出现崩溃报错日志

更新到Xcode8以后,发现打印了许多网络相关的日志:

[html] view plain copy  print?[] -[NWConcrete_tcp_connectiondealloc]11[] nw_socket_handle_socket_event Event mask:0x4[] nw_socket_handle_socket_event Socket received WRITE_CLOSE event[] nw_socket_handle_socket_event Event mask:0x4[] nw_socket_handle_socket_event Socket received WRITE_CLOSE event] tcp_connection_cancel5[] nw_socket_handle_socket_event Event mask:0x4] nw_socket_handle_socket_event Socket received WRITE_CLOSE event[] nw_endpoint_handler_cancel[5192.168.2.51:1999 ready proxy(satisfied)]] -[NWConcrete_nw_endpoint_proxycancelWithHandler:forced:][5192.168.2.51:1999 cancelled proxy(null)]] nw_endpoint_handler_cancel[5.1192.168.2.51:1999 ready socket-flow(satisfied)][] nw_endpoint_flow_protocol_disconnected[5.1192.168.2.51:1999 cancelled socket-flow(null)] Output protocol disconnected[] nw_endpoint_handler_cancel[5.2192.168.2.51:1999 initial path(null)][] -[NWConcrete_tcp_connectiondealloc]5

这些日志给我们使用Log的方法来调试带来很大困扰,解决办法:

第一步:

第二步:

第三步:添加参数

Name :OS_ACTIVITY_MODE      Value :  disable

相关文章

网友评论

      本文标题:xCode8更新后控制台输出事件太多解决

      本文链接:https://www.haomeiwen.com/subject/bjrbyttx.html