Xcode 15 not finding iOS 17 devices

I have a brand new iPhone 15 with iOS 17, paired with a watch on WatchOS10. In devices and simulators, the iPhone 15 and Watch 10 device show up as disconnected (with the globe icon I think is what it is?) and if I click on either of them, that icon changes to a spinner, and the main window says "Xcode will continue when the operation completes", but it NEVER completes. This makes the device not usable for development.

In addition, I have updated my iPad to iOS17, and it doesn't even show up at all in the devices and simulator list, even though it is enabled for developer mode.

I have toggled developer mode off and on (thus rebooting). I have quit and restarted Xcode. I have even rebooted the Mac. Nothing helps. This is incredibly frustrating.

The phone/iPad are visible in Finder, and I can browse their contents. they are on Wifi as well as being connected via USB

I have deleted Xcode. I cleared out the caches. STILL NOTHING. I went into general - reset on the phone and reset location, which will cause it to ask me to trust the device again upon reconnection. Still nothing.

I can now get this error SOMETIMES.

For Pete's sake..., I can't even upload an image now. It says "The tunnel connection failed while the system tried to connect to the device", and the next line is "Tunnel NWConnection closed by remote side with no error"

Note, I can pair this phone and my iPad NO PROBLEM to an Intel based laptop that is too slow to use effectively. This needs to get fixed immediately or I'm dead in the water.

If you're using some kind of VPN in macOS, then one thing to try is to turn that VPN off. I am having trouble connection iOS 17 devices to Xcode 15 as long as I'm using Cisco's AnyConnect VPN. It seems to be a "kind of" known problem.

Is your Personal Hotspot enabled? If so:

On your Mac:
• Open Xcode.app.
– Window -> Devices & Simulators: Select the problematic iPhone.
– Connect problematic iPhone to Mac via USB.

On your problematic iPhone:
• Open Settings.app.
– Personal Hotspot -> Allow Others to Join: Toggle Off.
– Wi-Fi: Toggle Off.
– Bluetooth: Toggle Off.
( wait for connectivity error to clear on Xcode) – Wi-Fi: Toggle On.
– Bluetooth: Toggle On.
• Disconnect iPhone from USB.

Some notes:
• The problem might be aggravated by having a SIM-enabled Apple Watch connected via Bluetooth to the problematic iPhone (both of which use the same cell provider).
• The problem seems not to occur if you enable the Personal Hotspot before enabling WiFi & Bluetooth on the iPhone (ie - USB only hotspot).
• I've filed a bug with Apple about this (FB13287330).

"Disabling "Multipath Networking" in Settings>Developer on the iPhone did the trick for me." --hokilife

https://developer.apple.com/forums/thread/737907?answerId=769217022#769217022

I'm pleased to say that the issue is finally solved by upgrading to macOS Sonoma! Works like a charm! Others have reported this too on other online forums.

Spent the last 2 days trying to solve this problem and tried everything from the threads on the Apple Developer forums. Only this solution worked! Disabling VPN and all the other tips didn't help for me.

I've found the solution to this issue.

Solution: Remove / rename /Library/Developer folder as it's corrupted.

More context: https://developer.apple.com/forums/thread/744083?page=1#776192022

My IT department just succeeded in the Herculean task of getting both Cisco and our VPN provider to admit the problem existed and was caused by the VPN, and got Cisco to provide a solution that our VPN provider had to implement. VPN settings are definitely not my strong suit, but he sent me this excerpt from Cisco's docs:

Configure IPv4 or IPv6 Traffic to Bypass the VPN

You can configure how the AnyConnect client manages IPv4 traffic when the ASA is expecting only IPv6 traffic or how AnyConnect manages IPv6 traffic when the ASA is only expecting IPv4 traffic using the Client Bypass Protocol setting.

When the AnyConnect client makes a VPN connection to the ASA, the ASA can assign the client an IPv4, IPv6, or both an IPv4 and IPv6 address.

If Client Bypass Protocol is enabled for an IP protocol and an address pool is not configured for that protocol (in other words, no IP address for that protocol was assigned to client by the ASA), any IP traffic using that protocol will not be sent through the VPN tunnel. It will be sent outside the tunnel.

If Client Bypass Protocol is disabled, and an address pool is not configured for that protocol, the client drops all traffic for that IP protocol once the VPN tunnel is established.

For example, assume that the ASA assigns only an IPv4 address to an AnyConnect connection and the endpoint is dual stacked. When the endpoint attempts to reach an IPv6 address, if Client Bypass Protocol is disabled, the IPv6 traffic is dropped. If Client Bypass Protocol is enabled, the IPv6 traffic is sent from the client in the clear. If establishing an IPseç tunnel (as opposed to an SSL connection), the ASA is not notified whether or not IPv6 is enabled on the client, so ASA always pushes down the client bypass protocol setting.

You configure the Client Bypass Protocol on the ASA in the group policies.

This solve the issue, you have to search for the compability: https://xcodereleases.com/

In my case I had to update to sonoma and then the xcode to 15.4 to support compatibility

@skipperfrood 's comment got me looking in the right direction. The VPN on my test device was causing the issue. Turning that off allowed Xcode to find the device. I haven't tried setting up a bypass on IPv4/6 traffic yet, but the VPN was definitely the cause

Xcode 15 not finding iOS 17 devices
 
 
Q