Xcode8 Log 的处理

更新到Xcode8以后,发现打印了许多网络相关的日志:
[] -[NWConcrete_tcp_connection dealloc] 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_cancel 5
[] nw_socket_handle_socket_event Event mask: 0x4] nw_socket_handle_socket_event Socket received WRITE_CLOSE event
[] nw_endpoint_handler_cancel [5 192.168.2.51:1999 ready proxy (satisfied)]] -[NWConcrete_nw_endpoint_proxy cancelWithHandler:forced:] [5 192.168.2.51:1999 cancelled proxy (null)]] nw_endpoint_handler_cancel [5.1 192.168.2.51:1999 ready socket-flow (satisfied)]
[] nw_endpoint_flow_protocol_disconnected [5.1 192.168.2.51:1999 cancelled socket-flow (null)] Output protocol disconnected
[] nw_endpoint_handler_cancel [5.2 192.168.2.51:1999 initial path (null)]
[] -[NWConcrete_tcp_connection dealloc] 5


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

第一步:

第二步:


第三步:

添加参数:

Name :OS_ACTIVITY_MODE 

Value :  disable


阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/cw0028/article/details/52571703
文章标签: objective-c iOS10 xcode
个人分类: iOS开发
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭