Xcode 15, how to uncheck "Connect via network" for physical device?

This thread has been locked by a moderator; it no longer accepts new replies.

In Xcode 15, the checkbox for "Connect via network" is grayed out and cannot be unchecked. However, I would like to disable it because debugging via network is too slow for me.

Does anyone have an idea how I can disable this?

Answered by DTS Engineer in 771548022

Last week Apple published TN3158 Resolving Xcode 15 device connection issues that addresses this topic in depth.

IMPORTANT While this technote is associated with changes in macOS 14.4 and Xcode 15.3, both currently available as release candidates, installing these builds will not automagically fix all device connection problems. Read TN3158 for more backstory on this.

Because I want to separate the pre- and post-TN3158 discussion of this issue, I’ve locked this thread. If you have more to say on this subject, I’ve created a new thread for that discussion, namely Xcode 15.3 device connection issues.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Pre-TN3158 bugs

FB13198191 FB13203790 FB13204677 FB13208687 FB13210513 FB13211128 FB13231882 FB13246000 FB13256031 FB13267950 FB13278689 FB13350507 FB13380011 FB13474705 FB13513987 FB13601388

Revision History

  • 2023-03-05 Made major changes to reference TN3158.

  • 2024-02-09 Added more bug numbers.

  • 2024-01-09 Added more bug numbers.

  • 2023-11-09 Added more bug numbers.

  • 2023-11-08 First posted.

Boost

Same here. M1 Pro MacBook Pro and iPhone 15 Pro Max, all on latest OS and Xcode (15.2). Connected via USB cable, and the app launches instantly but its just a blank screen for 20-40+ seconds. About 50% of the time I just have to kill the build and restart because it gets stuck and my app's UI just never shows.

But when I turn wifi off on the device, it's nearly instant as expected. Also no issues at all building to a simulator. Building to a physical device is completely unusable for me currently.

I'm a developer, working on a mac over a VPN connection. The iPad is connected to the mac over an USB-C-cable. After updated to iPadOS 17.2 and Xcode 15.1, Xcode doesn't show the device anymore. After hours of searching, I found the solution: IPv6 connections in the LAN have to be allowed in the Firewall policy of the VPN client on the mac.

How is it possible to effectively debug network changes on a physical iPhone (which is recommended by Apple for a more accurate testing environment) if disabling the device's Wi-Fi while connected to Xcode via USB disrupts the debugging process? This presents a real challenge that needs to be addressed.

UPDATE: Feedback created - FB13601388

This is a HUGE issue for me! I am working on an IoT app that uses NEHotspotConfiguration to switch to the wifi network of a device to stream video. Once I connect to the IoT device, the connection to Xcode is lost. This is so hard to develop now, and since I am running Sonoma, I cannot revert to an older version of Xcode. And tuning off Wifi is not an option since that is required for the app to connect to the device.

Finally I understand what I've been seeing. I develop apps that require connecting to my company's hardware products over WiFi, by joining an AP. Bluetooth/BLE do not provide the bandwidth to support our use-case, while a wired connection is not practical, so we really don't have an alternative. My app also uses BLE to browse for available devices, so for all I know that's throwing a wrench in things, too. No choice there, either, as we already applied for (and were denied) the entitlement to browse SSID's directly.

This "feature" makes it very difficult to debug, because a significant percentage of the time Xcode will lose connection. It freezes my app, too. I really wish Apple would stop to consider these somewhat less-common (but not altogether rare) Enterprise use-cases. My last company developed a VoIP solution that ran on closed networks (hospitals) and Apple forced changes that made our lives very difficult.

It worst. I need to debug switch between WiFI/Mobile network and i can't do this. If i run app in airplane mode it starts use cable, but if WiFi appearing, connection is losing.

Hi @eskimo, do you have any update on this? It's impossible to debug using two devices and a single cable, when unplugging one and plugging the other one, debugging continues on the former device. Is such a scenario illegal, and does Apple want us to stop doing it?

do you have any update on this?

No. If I have info to share, I’ll update the pinned answer.

Is such a scenario illegal … ?

I can’t answer legal questions. However, my general advice still stands: If this is causing you grief, I recommend that you file a bug with the details of your particular situation. My pinned answer has specific advice on how to do that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Same problem. It broke the devs entirely. This is worst thing ever... XCode Version 15.2 (15C500b) macOS 14.3.1 (23D60)

Xcode 15, how to uncheck "Connect via network" for physical device?
 
 
Q