1.多行注释问题:
- 发现升级Xcode8以后 "command + /" 不好使了,身为一个程序员这样的问题不解决?不能够啊...解决办法 如下:
sudo /usr/libexec/xpccachectl
- PS:然后必须重启电脑后生效
2.控制台打印一堆问题:
- 升级Xcode8以后控制台会打印许多网络相关的日志:
[html] view plain copy print?
[] -[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
-
解决办法:选择"Product->Scheme->Edit Scheme" 或者直接按 "command + shift + <" 快捷键,在弹出的窗口中"Environment Variables" 下添加 "OS_ACTIVITY_MODE",value为:"disable".如下图: