Rah*_*ani 82 objective-c ios10 xcode8.2
2016-09-17 15:16:04.386085 appDemo[2371:94976] [] __nwlog_err_simulate_crash simulate crash already simulated **"nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available"**
2016-09-17 15:16:04.386676 appDemo[2371:94976] [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
[x86_64] libnetcore-856.1.8
0 libsystem_network.dylib 0x0000000112dc780e __nw_create_backtrace_string + 123
1 libnetwork.dylib 0x0000000113bfa194 nw_socket_add_input_handler + 3002
2 libnetwork.dylib 0x0000000113bd7db8 nw_endpoint_flow_attach_protocols + 3768
3 libnetwork.dylib 0x0000000113bd6dd5 nw_endpoint_flow_setup_socket + 563
4 libnetwork.dylib 0x0000000113bd5b34 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
5 libnetwork.dylib 0x0000000113bf0d11 nw_endpoint_handler_path_change + 1261
6 libnetwork.dylib 0x0000000113bf0740 nw_endpoint_handler_start + 570
7 libdispatch.dylib 0x0000000112b44980 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x0000000112b6e
2016-09-17 15:16:04.387153 appDemo[2371:94976] [] nw_endpoint_flow_attach_protocols [2 192.168.0.100:80 in_progress socket-flow (satisfied)] Attached flow protocol
2016-09-17 15:16:04.387679 appDemo[2371:94976] [] nw_connection_endpoint_report [2 192.168.0.100:80 in_progress socket-flow (satisfied)] reported event flow:start_connect
Run Code Online (Sandbox Code Playgroud)
我正在使用xcode 8版本ios 10.现在,我正在使用API.如果,我在Xcode 7其工作中使用API 很好,但是当我在xcode 8错误消息中使用的相同API 出现时无法解析.
小智 145
我找到了解决方案如下:
OS_ACTIVITY_MODE是disable可以在/sf/answers/2775575141/获得一个更清晰的解决方案(比Ankit Goyal提供的解决方案)修复模拟器日志而不影响设备日志:

要为OS活动模式关闭Verbose,您只需转到(在Xcode菜单栏中)
Product - > Scheme - > Edit Scheme-> Run(Left) - > Select Arguments - > On Environment Variables,
将OS_ACTIVITY_MODE和值添加为禁用
| 归档时间: |
|
| 查看次数: |
37214 次 |
| 最近记录: |