nw_host_stats_add_src recv too small, received 24, expected 28 |---bug解决方法

控制台输出的错误日志


2016-12-27 10:46:54.184099 iOS_ClusterAnnotation_3D[3370:82752] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-12-27 10:46:54.200973 iOS_ClusterAnnotation_3D[3370:82752] [] ____nwlog_simulate_crash_inner_block_invoke dlopen CrashReporterSupport failed
2016-12-27 10:46:54.201807 iOS_ClusterAnnotation_3D[3370:82752] [] __nwlog_err_simulate_crash simulate crash failed "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available"
2016-12-27 10:46:54.203771 iOS_ClusterAnnotation_3D[3370:82752] [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
        [x86_64] libnetcore-856.20.4
    0   libsystem_network.dylib             0x000000010c6b5682 __nw_create_backtrace_string + 123
    1   libnetwork.dylib                    0x000000010d735932 nw_socket_add_input_handler + 3100
    2   libnetwork.dylib                    0x000000010d7134f4 nw_endpoint_flow_attach_protocols + 3768
    3   libnetwork.dylib                    0x000000010d712511 nw_endpoint_flow_setup_socket + 563
    4   libnetwork.dylib                    0x000000010d711270 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
    5   libnetwork.dylib                    0x000000010d72c44d nw_endpoint_handler_path_change + 1261
    6   libnetwork.dylib                    0x000000010d72be7c nw_endpoint_handler_start + 570
    7   libnetwork.dylib                    0x000000010d743ae5 nw_endpoint_resolver_start_next_child + 2240
    8   libdispatch.dylib                   0x000000010c432980 _dispatch_call_block_and_release + 12
    9   libdispatch.dylib                   0x000000010c45c0cd _dispatch_client_callout + 8
    10  libdispatch.dylib                   0x000000010c439e6b _dispatch_queue_serial_drain + 236
    11  libdispatch.dylib                   0x000000010c43ab9f _dispatch_queue_invoke + 1073
    12  libdispatch.dylib                   0x000000010c43d3b7 _dispatch_root_queue_drain + 720
    13  libdispatch.dylib                   0x000000010c43d08b _dispatch_worker_thread3 + 123
    14  libsystem_pthread.dylib             0x000000010c8054de _pthread_wqthread + 1129
    15  libsystem_pthread.dylib             0x000000010c803341 start_wqthread + 13
屏幕快照 2016-12-27 10.57.22.png

解决方法

1.选择 Product –>Scheme–>Edit Scheme
2.选择 Arguments
3.在Environment Variables添加一个环境变量 OS_ACTIVITY_MODE 设置值为”disable”
4.clean(command + K)和build一下
5.重新运行

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容