I am using MacOS Catalina. Because of security, I hide the SSID of my network but my mac can not find it. I tried and tried, I searched on google but cant find the answer. At last, I found this solution:
1- I unhide SSID of my network.
2- I connected it with my mac
3- I hide the SSID of my network.
This was temporary solution. Then I tried this:
1- Open Terminal app and write this:
sudo networksetup -setairportnetwork en1 yourwifissid yourwifipassord
( Change yourwifissid and yourwifipassord )
2- Then it asks your password, write and hit enter.
This is the solution I found. But when I sleep my mac, again it forgets the wifi address. I couldnt find any other solution 🙂