Xcode 15.0 Release doesn't connect at all iOS 17

Hello, I've been using Xcode 4.3.1 and 15 Beta with my iOS 16.5 and 16.6.1 and no issues occurred.

Yesterday, I got a prompt of Xcode 15.0 Release and I put my Xcode on upgrade, at the same time I noticed that iOS also says that 17.0 is available. I upgraded both.

Now my device is not detected on Xcode, it keeps saying Waiting to connect to XXXX iPhone.

Also says, Previous preparation error: The tunnel connection failed while the system tried to connect to the device. I am using the same WIFI on MAC that i am using on Iphone.

A temporary not so much feasible workaround that i found is:

  1. Unpair phone
  2. Disable WIFI put phone on LTE/Mobile Data
  3. Connect via usb cable and MAC detects it and connects to it
  4. But now it only works in Xcode and Android studio installs app but can't run/debug it giving error that run it in Xcode.
  5. As soon as wifi is on, phone gets dc from Xcode as well, (even if USB is connected)

Important*: Connect via network checkbox is gryed out and is checked forever.

What i tried till now:

  1. Install all types of Xcode, 14.3.1 (says missing string install an updated version of xcode, but it detects device in all modes just gives this error and doesn't let build anything)

  2. Reset Xcode to default/ Delete dereived data/Delete all folders that are crucial in that ~/Library/.../xcode folder i.e. Archieves/products/device suport

  3. Netstat/kill usb/kill usbmuxd and what not

  4. Put phone on hotspot, connect mac on hotspot try debug (fails)

So, tried everything available on internet and yet still my real device on iOS 17 is not ready so that i can debug in Android studio, while in Xcode on same wifi even with USB cable it doesn't work.

Any suggestions??

Answered by hokielife in 769217022

Disabling "Multipath Networking" in Settings>Developer on the iPhone did the trick for me. Running iOS 17.1 (21B74) and XCode Version 15.0.1 (15A507)

I have the same with iPhone 13 Pro. Xcode 15 keeps saying "The tunnel connection failed while the system tried to connect to the device." Tho, another iPhone works with no issue.

Hi, I had a similar issue with my iPhone and Xcode, even when the phone was connected to the Mac via USB cable still had issues. For me what worked was to close the VPN client. Once the VPN client is closed, I could debug over USB without problem.

Another colleague had even worst issues where the Xcode did not recognise his phone even has been trusted. After trying to unpair the phone he couldn't pair it again anymore. Killing usbmuxd seems to do nothing for that problem. For him, remove all Xcode cached directories and rebooting the system seemed to get it somehow. But then started experiencing extreme slowness while debugging.

Even on my personal computer where I don't use VPN had some glitches and issues while trying to get all to work.

As always Apple did a terrible testing job when releasing new OS and tools, I can't understand how they keep repeating the same mistakes year after year.

So as a short summary:

  • Ensure you don't have a VPN connection active while debugging neither on the iOS or Mac
  • If still having issues with it, clean DerivatedData and reboot the Mac.

Those steps seemed to work fine for me and my colleague. I hope this helps you too.

Same issue here, "Waiting to connect to *** iPhone." I cannot get my iPhone, iPad, or my watch to connect. Doesn't work wirelessly and doesn't work with USB. No VPN involved. I've tried several "fixes" posted around but none have made a difference. Was hopeful upgrading to iOS 17.01 might help but it did not. Please post if you find a solution.

Encountered same problem. I have tried all the posted solutions including reset my device but none of them work. The complete issue log is:

The tunnel connection failed while the system tried to connect to the device. Domain: com.apple.dt.DVTCoreDevice Code: 4 Failure Reason: The tunnel connection failed while the system tried to connect to the device. User Info: { DVTErrorCreationDateKey = "2023-09-26 07:58:13 +0000"; "com.apple.dt.DVTCoreDevice.operationName" = connect; }

The tunnel connection failed while the system tried to connect to the device. Domain: com.apple.dt.RemotePairingError Code: 4

System Information

macOS Version 13.6 (Build 22G120) Xcode 14.3.1 (21815) (Build 14E300c) Timestamp: 2023-09-26T15:58:13+08:00

I am also experiencing this issue. None of the above mentioned tips have worked for me.

Same issue — Impossible to connect the iPhone iOS 17 to Xcode 15

I have uninstalled FortiClient on both the MacBook Pro (macOS 14.1 Beta build 23B5046f) and the iPhone (iOS 17.1 build 21B5045h), cleaned DerivatedData, rebooted the Mac and the iPhone, re-established the trust between both devices. The problem remains while I do not encounter issues to connect an iPad running iPadOS 16.x.

The Devices and Simulators window is even empty!

Same issue here, I have disabled VPN, Firewall, etc and still not connecting to iOS 17 device, with iOS 16 devices everything works just fine.

Same issue

I am also unable to develop, run & test with latest Xcode 15 on devices running iOS 17 (tried both 17.0.2 and 17.0.3). Unfortunately, I do not have other devices which still run iOS16 :/ Error message in my case:

I also tried all of the following:

  • Rebooting phones
  • Rebooting Macbook
  • Updating vom iOS 17.0.2 to 17.0.3
  • Deleting / Wiping Xcode & fresh install
  • Multiple unpair/pair retries
  • ...

No luck so far.

Same issue. Tried all above and still cannot connect iPhone 15 to Xcode 15.

Same issue here.

Ok, it seemed to be fixed for me after a disabled wifi, and then went into settings on the phone and cleared trusted computers, then I said ok to trusting the computer again.

I have same issue anyone with any solution how to handle this. i am even thinking of downgrading mac and x code

I was having the same problem, for me the fix was to enable Developer Mode on the iPhone.

While making the change, I had my iPhone connected to the Mac using USB cable, not sure if that is required though. On the iPhone change dev mode. Settings --> Privacy & Security --> Developer Mode = ON

The iPhone had to go through a restart, as soon as it restarted Xcode found the iPhone is sync'd and all seemed to work OK.

So I tried all the above and it seems not to work still. But I've noticed on some rare occasions on my work wifi when the cable connected to my Mac, Xcode 15 connects to my iPhone (iOS17) and I'm able to debug, run and test apps.

I'm a relatively new developer and this has slowed down progress on an app I am working on. Is this a regular yearly occurrence?

Xcode 15.0 Release doesn't connect at all iOS 17
 
 
Q