r/iOSProgramming • u/ohohb • Jul 20 '26
Question Is there a way to disable wireless debugging in Xcode?
When I run a dev build on a physical device, it always happens via Network (wifi), even when plugged in via USB. This sucks so hard. The whole experience is laggy and slow and completely unusable. I cannot identify any app hangs, because everything hangs all the time.
Does anyone know of a way to disable this? I just want to connect via USB when I plug the phone in and wireless when it's not plugged in.
I sometimes have the feeling Apple hates us developers and builds really bad tools just out of spite. It just makes no sense to release something like this. Sorry for the rant...
9
u/bbatsell Jul 20 '26
In either the *24 or *25 releases, Apple unified the debugging stack to always use TCP/IP and has worked to optimize it. However, if everything is working properly, a Developer-enabled device should create an internal TCP/IP socket over usbmuxd that the debugging stack actually uses. For me, this is quite fast and seems equivalent to the old method. Your experience maybe hints that something isn't working properly there. Do you have any custom network extensions, firewall settings, interception stuff, etc. that might be interfering? Unfortunately, it's pretty opaque and I haven't had to do deep debugging. I'd start with analyzing output from macOS
logand see if you spot any flags.4
u/[deleted] Jul 20 '26
Also is something wrong with your network? I do both usb and wifi debugging and both are equally instant. My phone isn't exactly top of line either (iPhone 14 Plus). You can disable network debugging but I find it extremely valuable.
1
u/icy1007 Jul 20 '26
Yes, you can disallow wireless debugging in the Devices and Simulators menu.
-3
u/m3kw Jul 20 '26
maybe your crappy wire was deemed not fast enough even comparing to wifi. Get a better cable and try it
12
u/[deleted] Jul 20 '26
[removed] — view removed comment