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

I've got a slightly different problem but I think it's related. I'm trying to connect an iPhone 11 with iOS 17 to Xcode 15 and I get stuck on a message stating: Waiting to reconnect to iPhone. I've opened a bug: https://feedbackassistant.apple.com/feedback/13267950

I think this is also related to this new network only debugging architecture thingy.

Same problem here. I still got an SE 1st gen (iOS 15.7) and an XS Max (iOS 16.7.1) which I can use for fast debugging, but my brand new 15 Pro Max is slow as molasses (same app), whether I plug in the cable or not.

I am having the same situation.

Sometimes my app launches very slowly, and debugging is slow as well. I am always using USB cable, but I can unplug it and see debugger still works, which makes me think it's debugging wirelessly.

Sometimes it's fast, and I've observed that disabling USB cable immediately stops the debugging.

I would really like to work with the cable, because it was launching a couple of times faster than now.

I've tried disabling Wi-Fi and Bluetooth, and the app does not launch. I receive an error, works well when I am connected to Wi-Fi

The request to open "com.redacted.app.staging" failed.
Domain: IDELaunchCoreDevice
Code: 0
User Info: {
    DVTErrorCreationDateKey = "2023-10-16 16:37:11 +0000";
    IDERunOperationFailingWorker = IDELaunchCoreDeviceWorker;
}
--
The application failed to launch.
Domain: com.apple.dt.CoreDeviceError
Code: 10002
User Info: {
    BundleIdentifier = "com.redacted.app.staging";
}
--
The request to open "com.redacted.app.staging" failed.
Domain: FBSOpenApplicationServiceErrorDomain
Code: 1
Failure Reason: The request was denied by service delegate (SBMainWorkspace).
User Info: {
    BSErrorCodeDescription = RequestDenied;
    FBSOpenApplicationRequestID = 0xde7f;
}
--
The operation couldn’t be completed. The process failed to launch.
Domain: FBProcessExit
Code: 64
Failure Reason: The process failed to launch.
User Info: {
    BSErrorCodeDescription = "launch-failed";
}
--
The operation couldn’t be completed. Launch failed.
Domain: RBSRequestErrorDomain
Code: 5
Failure Reason: Launch failed.
--
Launchd job spawn failed
Domain: NSPOSIXErrorDomain
Code: 85
Failure Reason: Bad executable (or shared library)
--

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_isCoreDevice" = 1;
    "device_model" = "iPhone16,1";
    "device_osBuild" = "17.0.2 (21A350)";
    "device_platform" = "com.apple.platform.iphoneos";
    "dvt_coredevice_version" = "348.1";
    "dvt_mobiledevice_version" = "1643.2.4";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 7856;
    "operation_errorCode" = 0;
    "operation_errorDomain" = IDELaunchCoreDevice;
    "operation_errorWorker" = IDELaunchCoreDeviceWorker;
    "operation_name" = IDERunOperationWorkerGroup;
    "param_debugger_attachToExtensions" = 0;
    "param_debugger_attachToXPC" = 1;
    "param_debugger_type" = 3;
    "param_destination_isProxy" = 0;
    "param_destination_platform" = "com.apple.platform.iphoneos";
    "param_diag_MainThreadChecker_stopOnIssue" = 0;
    "param_diag_MallocStackLogging_enableDuringAttach" = 0;
    "param_diag_MallocStackLogging_enableForXPC" = 1;
    "param_diag_allowLocationSimulation" = 1;
    "param_diag_checker_tpc_enable" = 1;
    "param_diag_gpu_frameCapture_enable" = 0;
    "param_diag_gpu_shaderValidation_enable" = 0;
    "param_diag_gpu_validation_enable" = 1;
    "param_diag_memoryGraphOnResourceException" = 0;
    "param_diag_queueDebugging_enable" = 1;
    "param_diag_runtimeProfile_generate" = 0;
    "param_diag_sanitizer_asan_enable" = 0;
    "param_diag_sanitizer_tsan_enable" = 0;
    "param_diag_sanitizer_tsan_stopOnIssue" = 0;
    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
    "param_diag_showNonLocalizedStrings" = 0;
    "param_diag_viewDebugging_enabled" = 1;
    "param_diag_viewDebugging_insertDylibOnLaunch" = 1;
    "param_install_style" = 0;
    "param_launcher_UID" = 2;
    "param_launcher_allowDeviceSensorReplayData" = 0;
    "param_launcher_kind" = 0;
    "param_launcher_style" = 99;
    "param_launcher_substyle" = 8192;
    "param_runnable_appExtensionHostRunMode" = 0;
    "param_runnable_productType" = "com.apple.product-type.application";
    "param_structuredConsoleMode" = 1;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphoneos17.0";
    "sdk_osVersion" = "17.0";
    "sdk_variant" = iphoneos;
}
--


System Information

macOS Version 14.0 (Build 23A344)
Xcode 15.0 (22265) (Build 15A240d)
Timestamp: 2023-10-16T18:37:11+02:00

Filed a report: FB13278689

This issue is so annoying. My whole team is falling behind because we upgraded our macs and phones. We need to be able to turn off Network mode. I don't understand why it would be locked on... It's been clear over the years that it's not very performant.

Same here. We are trying to test/debug a critical feature involving network (which obviously needs to be tested on losing/reconnecting wifi) and it is–as of now, writing this post–impossibile: even when launching with the device attached to USB the debugger crashes as soon as wifi is disabled. Honestly a little concerning that this was overlooked.

The same problem is here! Can't develop with my normal speed at all... Apple, bring fresh air back!

What worked for me is:

  1. Turn off WiFi on my phone then run the app. XCode can't connect to the phone over WiFi and is forced to use the cable for debugging.
  2. Once the app is running and debugging is quick again, I can turn WiFi back on and XCode continues to use the cable for debugging.
Accepted Answer

I've updated my devices to iOS 17.1 (21B5066a) today, and I've observed that if I first connect devices (I use both, iPhone and iPad) to the Mac, BEFORE launching Xcode, then the debugging works smoothly and app launch is much faster.

If I unplug and plug it back, when Xcode is already launched, and I build again, I end up having super long launch time and slow performance.

Try it on your end:

1. Plug device to your Mac first

2. Launch xcode

Cannot confirm if that's the case, but this solution worked for me and today was the first day since Xcode 15, that I've been working efficiently.

I cannot debug apps while connected to Cisco Secure Client VPN on Sonoma, Xcode 15 and iOS 17. This is an exceptionally narrow-minded change by Apple ignoring the fact that all big companies require VPN for daily work and most developers are working remotely now.

It is disgusting. And often can't connect to my iPad. I can't close WIFI of my iPad. Have no idea how to close it.

Same here... I've turned off the Mac and iPhone's wifi/bluetooth, restarted the Mac and Xcode, nothing works. This Xcode 15 is the buggiest of them all.

I also cannot debug apps locally on a physical device while my Mac is connected to a VPN via Cisco Secure Client on Ventura 13.6, Xcode 15 and iOS 17.

Same issue here, and beside the issues mentioned already, this is quite a pain of you have a number of potential devices to run on.

While previously devices were automatically switched when connected via cable, now I always have to select them in the menu. Which can be quite bothersome, if you have multiple similar devices.

Cable debugging was always way faster than remote debugging, and I really do not understand why Apple is fixing something that was not broken.

I also cannot debug apps locally on a physical device while my Mac is connected to a VPN via Cisco Secure Client on Ventura 13.6, Xcode 15 and iOS 17.Unbelievable

Same issue here, I also cannot debug apps on a physical device while my Mac and the device are both connected to a VPN. The Mac use on Sonoma 14.1, Xcode 15.0.1 and iOS 17.1.

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