The developer disk image could not be mounted on this device

When I try and run my app on my phone (iPhone 14 iOS version 17.5.1) in XCode 15.4 I get the following:

Previous preparation error: The developer disk image could not be mounted on this device.. You don’t have permission to save the file “DADFD0D2-1ED9-4F56-AAAE-310E8BF60870” in the folder “CoreDevice_DDI_Staging_503”.

Domain: com.apple.dt.deviceprep Code: -10 Recovery Suggestion: Previous preparation error: The developer disk image could not be mounted on this device.. You don’t have permission to save the file “DADFD0D2-1ED9-4F56-AAAE-310E8BF60870” in the folder “CoreDevice_DDI_Staging_503”. User Info: { DVTRecoveryBlockKey = "<NSMallocBlock: 0x600010ba62b0>"; NSLocalizedRecoveryOptions = ( Cancel ); NSRecoveryAttempter = "<_DVTErrorRecoveryHandler: 0x6000586d8530>"; }

System Information

macOS Version 14.5 (Build 23F79) Xcode 15.4 (22622) (Build 15F31d) Timestamp: 2024-07-29T19:05:07-07:00

Haven't been able to figure out the root cause. Any advice would be appreciated.

Can you run this command in Terminal, and let me know the results?

sudo chmod 0777 /private/var/tmp

—Ed Ford,  DTS Engineer

It did help me too! thank you so much, they are so many topics about this issue on forums ! You should promote this post at top level !

this way we could avoid doing stupid things like : deleting /library/Developer/DeveloperDiskImages as it's "claimed" to be fixing the pb which it is not actualy

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