Same problem here. iPhone 13 running 17.5.1; MBP M3, late 2023 running Sonoma 14.5. Disabling the VPN isn't an option because my employer requires it. What's weird is that Xcode can see the phone sometimes (maybe once every couple of days), but even if it does, I get a connection error a few minutes later and I'm back to square one. The phone is in Developer Mode (which I've toggled a few times, to no avail) and I frequently clear the trusted computers.