Xcode8更新后的一些问题解决


1.common+/ 不能注释了

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

命令运行:  sudo /usr/libexec/xpccachectl 

然后必须重启电脑后生效


2.出现崩溃报错日志

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

[html] view plain copy
 print?
  1. [] -[NWConcrete_tcp_connection dealloc] 11  
  2. [] nw_socket_handle_socket_event Event mask: 0x4  
  3. [] nw_socket_handle_socket_event Socket received WRITE_CLOSE event  
  4. [] nw_socket_handle_socket_event Event mask: 0x4  
  5. [] nw_socket_handle_socket_event Socket received WRITE_CLOSE event] tcp_connection_cancel 5  
  6. [] nw_socket_handle_socket_event Event mask: 0x4] nw_socket_handle_socket_event Socket received WRITE_CLOSE event  
  7. [] 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)]  
  8. [] nw_endpoint_flow_protocol_disconnected [5.1 192.168.2.51:1999 cancelled socket-flow (null)] Output protocol disconnected  
  9. [] nw_endpoint_handler_cancel [5.2 192.168.2.51:1999 initial path (null)]  
  10. [] -[NWConcrete_tcp_connection dealloc] 5  


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

第一步:

第二步:


第三步:

添加参数:

Name :OS_ACTIVITY_MODE 

Value :  disable


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值