Xcode 15.0 wouldn't connect iPhone with iOS 17.0

I have installed Xcode 15.0 and trying to connect a recently updated (iOS 17.0) iPhone 14 Pro Max. Unable to do so.

Displays - "The developer disk image could not be mounted on this device. A networking error occurred."

I have tried uninstalling and reinstalling Xcode, restarting the iPhone.

Domain: com.apple.dt.CoreDeviceError
Code: 12040
Failure Reason: A networking error occurred.
User Info: {
    DDIPath = "/Users/****/Library/Developer/DeveloperDiskImages/iOS_DDI.dmg";
    DVTErrorCreationDateKey = "2023-09-19 18:15:30 +0000";
    DeviceIdentifier = "583B3717-6C53-4230-9EAF-C8E8556227F3";
    IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
    NSURL = "file:///Users/****/Library/Developer/DeveloperDiskImages/iOS_DDI.dmg";
    Options =     {
        MountedBundlePath = "file:///private/var/tmp/CoreDevice_DDI_Staging_1782879505/583B3717-6C53-4230-9EAF-C8E8556227F3/";
        UseCredentials = 0;
    };
    "com.apple.dt.DVTCoreDevice.operationName" = enablePersonalizedDDI;
}
--
A networking error occurred.
Domain: com.apple.dt.CoreDeviceError
Code: 4
--
Error mounting image: 0xe800010e (kAMDMobileImageMounterNetworkNotReachableError: A network error occurred (server not reachable).)
Domain: com.apple.mobiledevice
Code: -402652914
User Info: {
    FunctionName = AMDeviceRemoteMountPersonalizedBundle;
    LineNumber = 2108;
}
--
AMAuthInstallRequestSendSync failed: 11 (kAMAuthInstallErrorServerNotReachable)
Domain: com.apple.mobiledevice
Code: -402652914
User Info: {
    FunctionName = "-[PersonalizedImage mountImage:]";
    LineNumber = 2005;
}
--

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_isCoreDevice" = 1;
    "device_model" = "iPhone15,3";
    "device_osBuild" = "17.0 (21A329)";
    "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" = 19039;
    "operation_errorCode" = 4;
    "operation_errorDomain" = "com.apple.dt.CoreDeviceError.12040.com.apple.dt.CoreDeviceError";
    "operation_errorWorker" = IDEInstallCoreDeviceWorker;
    "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" = 0;
    "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 13.5.2 (Build 22G91)
Xcode 15.0 (22265) (Build 15A240d)
Timestamp: 2023-09-19T14:15:30-04:00

I have same issue along with one of my colleagues. please post here if you find solution, thanks

I'm facing same issue. Can you help me if you solved this issue?

@ManagerScott, @Monikanta It seems Xcode tries to verify dev account (not sure about the URL) before loading the DDI and my work MacBook was blocking this due to firewall rules. I tried it on a personal Mac and it worked.

I have a similar issue. Not using any firewall or VPN. Running on my personal Mac. Further details here: https://developer.apple.com/forums/thread/738712

I'm facing the same problem, not been able to solve this for about 1 month.

  • Not connected to any VPN.
  • Tried to erase all settings on my iPhone.
  • Tried to delete ~/Library/Developer folder, restarted Xcode, also restarted my Mac.
  • Upgraded from Xcode 15.0 to 15.3.

I still can't debug my app on iPhone 12 ios 17.3.1

I am also facing same issue "ERROR: The developer disk image could not be mounted on this device. (com.apple.dt.CoreDeviceError error 12040 (0x2F08))"

IOS version : 17.5.1 Xcode : 15.4

Tried by deleting all cache and developer disk images. Updating xcode. Nothing has worked out.

It is stopping my debugging in real phone

Xcode 15.0 wouldn't connect iPhone with iOS 17.0
 
 
Q