Xcode8打印问题,[] nw_host_stats_add_src recv too small, received 24, expected 28

2017-04-01 11:33:59.759142 BuDeJie[20240:1378514] [] nw_host_stats_add_src recv too small, received 24, expected 28
2017-04-01 11:33:59.759832 BuDeJie[20240:1378514] [] nw_host_stats_add_src recv too small, received 24, expected 28
2017-04-01 11:33:59.763372 BuDeJie[20240:1378509] [] nw_host_stats_add_src recv too small, received 24, expected 28
2017-04-01 11:33:59.768581 BuDeJie[20240:1378509] [] ____nwlog_simulate_crash_inner_block_invoke dlopen CrashReporterSupport failed
2017-04-01 11:33:59.768895 BuDeJie[20240:1378509] [] __nwlog_err_simulate_crash simulate crash failed "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available"
2017-04-01 11:33:59.770022 BuDeJie[20240:1378509] [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
        [x86_64] libnetcore-856.30.16
    0   libsystem_network.dylib             0x00000001086cc666 __nw_create_backtrace_string + 123
    1   libnetwork.dylib                    0x0000000108b9f006 nw_socket_add_input_handler + 3164
    2   libnetwork.dylib                    0x0000000108b7c555 nw_endpoint_flow_attach_protocols + 3768
    3   libnetwork.dylib                    0x0000000108b7b572 nw_endpoint_flow_setup_socket + 563
    4   libnetwork.dylib                    0x0000000108b7a298 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
    5   libnetwork.dylib                    0x0000000108b95ae1 nw_endpoint_handler_path_change + 1261
    6   libnetwork.dylib                    0x0000000108b95510 nw_endpoint_handler_start + 570
    7   libnetwork.dylib                    0x0000000108bad1f9 nw_endpoint_resolver_start_next_child + 2240
    8   libdispatch.dylib                   0x0000000108449978 _dispatch_call_block_and_release + 12
    9   libdispatch.dylib                   0x00000001084730cd _dispatch_client_callout + 8
    10  libdispatch.dylib                   0x0000000108450e17 _dispatch_queue_serial_drain + 236
    11  libdispatch.dylib                   0x0000000108451b4b _dispatch_queue_invoke + 1073
    12  libdispatch.dylib                   0x0000000108454385 _dispatch_root_queue_drain + 720
    13  libdispatch.dylib                   0x0000000108454059 _dispatch_worker_thread3 + 123
    14  libsystem_pthread.dylib             0x000000010881c4de _pthread_wqthread + 1129
    15  libsystem_pthread.dylib             0x000000010881a341 start_wqthread + 13

 


解决办法:添加环境变量  OS_ACTIVIITY_MODE 赋值为disable

 

流程:

1.选择 Product -->Scheme-->Edit Scheme

2.选择 Arguments

3.在Run-->Arguments -->Environment Variables添加一个环境变量 OS_ACTIVITY_MODE 设置值为"disable"

 

 

参考网址:http://blog.csdn.net/xiaoyuwen1242466468/article/details/53333963

转载于:https://www.cnblogs.com/sivek/p/6655348.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值