Xcode 15: Unable to pair iOS 17 device for debugging via cable

Hello!

I'm using corporate Mac which is managed via MDM and have many security restrictions such as mandatory turned on Firewall in stealth mode, blocking all incoming connections and usage of a VPN connection via PulseSecure.

I tried to turn off the VPN and connect my iPhone via cable, after that it has appeared in XCode devices list. But they cannot pair due to Firewall restrictions which I can't turn off due to my company security policies.

Pairing finishes with error:

Browsing on the local area network for iPhone 11, which has previously reported preparation errors

Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly.

The device worked very good with Xcode 15 and iOS 16.7 before the update to iOS 17. Reading of many posts with the similar problem shows that there was a new communication protocol introduced in iOS 17 and XCode 15 that actually cannot work without network, even when an iOS device connected via cable.

Is it somehow possible to pair iOS 17 with XCode 15 device and use debugging via cable with turned on Firewall? Seems this new "superb feature" now blocks many companies with mandatory turned on Firewall. Downgrading to iOS 16.7 or to Xcode 14.2 is not a solution.

Additional error info:

Internal logic error: Connection was invalidated
Domain: com.apple.CoreDevice.ControlChannelConnectionError
Code: 1
User Info: {
    DVTErrorCreationDateKey = "2023-11-14 14:03:32 +0000";
    "com.apple.dt.DVTCoreDevice.operationName" = connect;
}
--
Transport error
Domain: com.apple.CoreDevice.ControlChannelConnectionError
Code: 0
--
The operation couldn’t be completed. Operation timed out
Domain: NSPOSIXErrorDomain
Code: 60
Failure Reason: Operation timed out
User Info: {
    NSDescription = "Operation timed out";
}
--


System Information

macOS Version 13.5.1 (Build 22G90)
Xcode 15.0.1 (22266) (Build 15A507)
Timestamp: 2023-11-14T15:03:32+01:00

Thank you!

This is a known issue, with all VPN software, so it is not just CISCO-related but all software VPN-related products which means this is an Apple issue if all prior versions of iOS previously worked on VPN while debugging. The quickest fix for this is @Apple.

Cisco reported bug https://bst.cisco.com/quickview/bug/CSCwf98780

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 upgraded to Sonoma 14.2.1, with XCode 15.2 and iOS 17.2.1.. still the issue remains.. Any suggestions ?

Mine worked like a charm after disabling the VPN.

Xcode 15: Unable to pair iOS 17 device for debugging via cable
 
 
Q