How to debug apps with Xcode only using USB?

Hello. I am using Xcode 26.0 (17A324) with an iPhone 13 mini with iOS 26.0 (23A341). Due the network policies where my computer is at this moment, I am not able to prepare this iPhone to debug applications with Xcode over WiFi. There is no way to connect my computer to this iPhone over Wifi, just using the USB cable.

My question is: how to debug applications in this situation, only using the USB cable?

Every time I try to prepare this iPhone to be a available device to Xcode I received this error: " Browsing on the local area network for iPhone (2), 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.

Unable to copy shared cache files Domain: com.apple.dt.deviceprep Code: -33 User Info: { DVTErrorCreationDateKey = "2025-09-22 11:57:35 +0000"; NSLocalizedRecoverySuggestion = ""; "com.apple.dt.DVTCoreDevice.operationName" = dtfetchsymbols; }

The operation couldn’t be completed. No route to host Domain: NSPOSIXErrorDomain Code: 65 Failure Reason: No route to host

System Information

macOS Version 15.6.1 (Build 24G90) Xcode 26.0 (24228) (Build 17A324) Timestamp: 2025-09-22T08:57:35-03:00 "

Thank you!

How to debug apps with Xcode only using USB?
 
 
Q