I've been developing an iPhone app using my iPhone 11 for it. Up until the recent release of Xcode 15 and iOS 17 everything was going fine but suddenly, a few weeks after the update, my Xcode no longer can connect to the iPhone. It's stuck on "Waiting to reconnect".
Here's what I've tried so far:
- Unpair and pair again the iPhone multiple times
- Uninstalled and reinstalled Xcode
- Tried different cables to connect the iPhone to the Mac
- Rebooted both my mac and my phone
- Disabled and reenabled programmer mode on the iPhone
None of this helped. I really need my phone connected as this is a camera app as the simulators don't run the camera.
I'm running Xcode 15 on an Apple M1 with macOS Ventura 13.6.
What can I do to be able to connect my iPhone to Xcode again?
Edit: I've tried it with my iPad 5 and an iPhone 14 and I got the same result which makes me think there's something wrong with the Mac itself. The Mac has Perimeter 81 VPN and Vanta software both of which could impact the connection via Wi-Fi. Disabling the VPN doesn't seem to solve the issue though. I'm not sure I can uninstall Vanta as it's a company owned Mac. I've never been able to connect my iPhone via Wi-Fi even before updating to Xcode 15.
According to the release notes there's a known issue with VPNs but I'm not sure that's the case here.
Edit 2: I've confirmed that this was indeed an issue with the company mac. Any other mac works well with my iPhone and this issue does not occur. I'm leaving the question open in case some of the solutions work for similar issues caused by different things.