Hello,
I'm struggling to find a way, on how to add a new WiFi profile (SSID & password, that are in System Preferences > Network > Wi-Fi > Preferred Networks) programmatically, on MacOS (preferably something that'd work on obj c).
This is if some device would host a wifi hotspot, the Mac could connect to it automatically, or atleast the password would be already present (assuming there's no wifi connection already present).