When I try and deploy my app to my iPhone 12 running iOS17 Beta 6 with Xcode beta 8 I get : Previous preparation error: The developer disk image could not be mounted on this device. CoreDevice_DDI_Staging
This has been happening since beta 5 I think, worked on beta 3 for sure. Yes, I have reinstalled and rebooted everything multiple times, turned developer mode off and on along with pretty much every other incantation.
I have tried to manually create the directory CoreDevice_DDI_Staging_502 in /private/var/tmp/ as the recovery suggestion kind of implies but get permission denied.
The full error is:
the developer disk image could not be mounted on this device.
Domain: com.apple.dt.CoreDeviceError
Code: 12040
Failure Reason: You don’t have permission to save the file “my device id” in the folder “CoreDevice_DDI_Staging_502”.
User Info: {
DVTErrorCreationDateKey = "2023-08-31 21:45:03 +0000";
DeviceIdentifier = "xxxxx";
IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
NSURL = "file:///Users/***/Library/Developer/DeveloperDiskImages/iOS_DDI.dmg";
"com.apple.dt.DVTCoreDevice.operationName" = enablePersonalizedDDI;
}
You don’t have permission to save the file “my device id” in the folder “CoreDevice_DDI_Staging_502”.
Domain: NSCocoaErrorDomain
Code: 513
Failure Reason: You don’t have permission.
Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info.
User Info: {
NSFilePath = "/private/var/tmp/CoreDevice_DDI_Staging_502/mydeviceid";
}
The operation couldn’t be completed. Permission denied
Domain: NSPOSIXErrorDomain
Code: 13
Failure Reason: Permission denied
Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
"device_isCoreDevice" = 1;
"device_model" = "iPhone13,4";
"device_osBuild" = "17.0 (21A5326a)";
"device_platform" = "com.apple.platform.iphoneos";
"dvt_coredevice_version" = "347.1";
"dvt_mobiledevice_version" = "1643.2.3";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 12059;
"operation_errorCode" = 513;
"operation_errorDomain" = "com.apple.dt.CoreDeviceError.12040.NSCocoaErrorDomain";
"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" = 0;
"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 13.5.1 (Build 22G90)
Xcode 15.0 (22005) (Build 15A5229m)
Timestamp: 2023-08-31T17:45:03-04:00