My iOS 14 app needs to find the name of the currently connected network. However, the following code snippet always returns NULL:
CFArrayRef interfacesArray = CNCopySupportedInterfaces();
The Xcode console has this output during runtime:
[] nehelper sent invalid result code [1] for Wi-Fi information request
I have the following entitlements/capabilities set:
- Access WiFi Information
- Wireless Accessory Configuration
What else is needed?