Hi,
I am trying to get a list of available WiFi networks for a sandboxed macOS app:
CWInterface *wifi = [[CWWiFiClient sharedWiFiClient] interface];
NSError *err;
NSSet *scanset = [wifi scanForNetworksWithSSID:nil error:&err];
// scanset is always empty (but not nil), no error is writting to "err"
With macOS Sonoma the code always returns an empty list (with older macOS version it works fine). I already added Location permission (as described here: https://developer.apple.com/forums/thread/732431).
Getting the currently connected WiFi SSID (using [CWInterface interface].ssid
), as well as connecting to a WiFi network works.
How can I get a list of available WiFi SSIDs in macOS Sonoma?
Regards,