Failed to register for BoringSSL log debug updates

2019-03-09 03:14发布

When debugging app in Xcode 9 beta while it's running on iPhone with iOS 11 beta installed, I started to notice following messages when performing networking calls:

[] network_config_register_boringssl_log_debug_updates Failed to register for BoringSSL log debug updates
[BoringSSL] Function boringssl_context_get_peer_npn_data: line 1212 Peer's advertised NPN data is NULL or empty

Any idea what is causing this?

2条回答
贪生不怕死
2楼-- · 2019-03-09 03:34

This approach seems to stop all NSLog logging, which is a problem. For a more nuanced approach that builds on the accepted answer, above, but does not eliminate all NSLog logging, see the answer by cduhn at Hide strange unwanted Xcode 8 logs.

查看更多
神经病院院长
3楼-- · 2019-03-09 03:41

Open the Xcode Scheme editor and add a new environment variable OS_ACTIVITY_MODE and set to disable.

enter image description here

查看更多
登录 后发表回答