try disconnecting any devices you have connected.
I just tried everything SO suggested, reboots, wifi restart, iphone hotspot, nothing helped, so I unplugged my device and suddenly xcode connected and teams were fetched.