iOS 13.2 message: nehelper sent invalid result code [1] for Wi-Fi information request

谁说我不能喝 提交于 2020-01-06 08:11:19

问题


My app uses locationservices for tracking and geofencing in the background.

Now with iOS 13.2 I see every second the following message in the console:

Anchorwatch nehelper sent invalid result code [1] for Wi-Fi information request

My app does nothing with the WiFi system and when I disable WiFi on the device the message disappears.

While there seem to be no adverse effects by the message I learned the hard way that ignoring message might be a bad idea.

Can anyone hint me to why this message is coming and what I can do to supress it ?


回答1:


Check out WWDC 19 session 713, It happenes because in iOS13 in order to get WiFi details you should allow location permission, each time you try to pull CNCopyCurrentNetworkInfo data from CNCopySupportedInterfaces array you will get this log.

silly solution may be to try to enable location permission and you will not get this error anymore




回答2:


It eventually turned out, that a third party framework that my app uses, launches those calls to CNCopyCurrentNetworkInfo.

After I added WiFi access capabilities as described here to the app itself the error message disappeared



来源:https://stackoverflow.com/questions/58791035/ios-13-2-message-nehelper-sent-invalid-result-code-1-for-wi-fi-information-re

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!