This happened to me again yesterday (26 Apr 2020) with VS for Mac. I tried a few things including restarting my machine and couldn't connect and was getting the failed to sync error popup... I tried again this morning to add account and it didn't work. Heres what i did that worked for me.
I closed VS for Mac and then deleted the IOS project obj/bin folders. I then disconnected my physical iphone from my mac. Started VS for Mac and then plugged in my iphone. I then went through the process again clicking Visual Studio/Preferences/Apple Developer Accounts/Add Account and it finally worked this time after several tries before doing this.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags: