Xcode 13 Unable to get wifi networks : "nehelper sent invalid result code [1] for Wi-Fi information request"

I want to get all nearby networks(and/or the network the device is connected to). I am using Xcode 13 IOS14 and this code: NEHotspotNetwork.fetchCurrent(completionHandler: { (network) in if let unwrappedNetwork = network { let networkSSID = unwrappedNetwork.ssid print("Network: %{public}@ ", networkSSID ) } else { print("No available network") } }) info.plist:

Capabilities:

I tried this code and got this line:
NEHotspotNetwork nehelper sent invalid result code [1] for Wi-Fi information request No available network

I have the same issue just as yours. NEHotspotNetwork nehelper sent invalid result code. and I config the same project info, and I configed APP ID in my account. still not working.

It's a feature (joking). Must of the time rebooting will fix the issue. Seems like sometimes hardware layer and app api stop to communicate and the NEHotspotNetwork seems have very big flows in callback handling.

You can have same issues in any of the calls based on NEHotspotNetwork may be they will fix that part but i would not count on it too much.

Xcode 13 Unable to get wifi networks : "nehelper sent invalid result code [1] for Wi-Fi information request"
 
 
Q