Is there a way to force Xcode to always debug over USB instead of WiFi?

1 day ago 1
ARTICLE AD BOX

I'm testing offline mode in my app. When I debug over WiFi, the iPhone loses the debugger connection after several seconds when I turn on Airplane Mode.

In Xcode 26, there is no longer a checkbox for disabling WiFi in the device settings.

Network Link Conditioner doesn't allow simulating "no connection" - it can only simulate 100% packet loss, which is useful but a different scenario.

If I turn on Airplane Mode before I run the app (with USB connected), Xcode says the iPhone must be on the same network. The same happens when I just disconnect from WiFi.

Moreover, WiFi debugging is slow compared to USB. When it hits the first breakpoint, it takes ~20-30 seconds before it stops (Xcode loads debug symbols). po takes 5–10 seconds to print anything.

Read Entire Article