The developer disk image could not be mounted on this device

Using Xcode 15.4 beta and VisionPro running visionOS 1.2. When attempting to run the app on device from Xcode getting the following error:

The developer disk image could not be mounted on this device.
Domain: com.apple.dt.CoreDeviceError
Code: 12040
Failure Reason: Error mounting image: 0xe8000105 (kAMDMobileImageMounterTATSUDeclinedAuthorization: The server declined to authorize this image on this device for this user.)
User Info: {
    DDIPath = "/Users/<userNameHidden>/Library/Developer/DeveloperDiskImages/xrOS_DDI.dmg";
    DVTErrorCreationDateKey = "2024-04-17 02:59:41 +0000";
    DeviceIdentifier = "A8F7D57D-4567-400C-BFFA-88880980908";
    IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
    NSURL = "file:///Users/<userNameHidden>/Library/Developer/DeveloperDiskImages/xrOS_DDI.dmg";
    Options =     {
        MountedBundlePath = "file:///private/var/tmp/CoreDevice_DDI_Staging_501/4584678-8568-4567-5754-4567767/";
        UseCredentials = 0;
    };
    "com.apple.dt.DVTCoreDevice.operationName" = enablePersonalizedDDI;
}

Any advice would be appreciated

Answered by Developer Tools Engineer in 785518022

Thank you for reporting this issue. We believe we have resolved it now. Can you try again, please?

If you're still seeing an issue, please file a feedback report at https://feedbackassistant.apple.com and include a sysdiagnose.

Accepted Answer

Thank you for reporting this issue. We believe we have resolved it now. Can you try again, please?

If you're still seeing an issue, please file a feedback report at https://feedbackassistant.apple.com and include a sysdiagnose.

It is working now. Thank you!

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

Please let me know the solution

The developer disk image could not be mounted on this device
 
 
Q