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