Unable to mount DDI image for iOS 17.4.1 after XCode 15.4 beta upgrade

Hi,

I was initially stuck with the issues described in thread 749821 between Sonoma 14.4.1, XCode 15.3, iOS 17.4.1 and watchOS 10.4. => Unable to deploy the watch app from Xcode

Yesterday when I saw the availability of XCode 15.4 beta, I decided to give it a shot.

This was a bad idea: now I can not even connect the iPhone anymore.

When running with XCode 15.4 beta:

The developer disk image could not be mounted on this device.. Error mounting image: 0xe8000105 (kAMDMobileImageMounterTATSUDeclinedAuthorization: The server declined to authorize this image on this device for this user.)

After reverting toe XCode 15.3, I have a similar issue:

 Unable to locate a developer disk image that can be used to enable DDI services..

    _synchronousInvoke(passing:context:continuingUsing:): Failed to find a DDI that can be used to enable DDI services on the device. Usually this means the best DDI we could find for a platform did not have compatible CoreDevice content.

    Failed to enable developer disk image services for assertion 7AB063A7-1F6F-4558-AEE6-7A4A00706E68. Error: <private>

I tried the following:

  • Unpair / Repair the iPhone
  • Disable Wifi
  • Reinstall the iPhone and the Watch
  • Reinstalled XCode several times

I also double checked that the DDI images are correct:

For XCode 15.3:

shasum ~/Library/Developer/DeveloperDiskImages/iOS_DDI.dmg
b75a90c64a0ece8f02ca3f4437208366e4884a6b 

For XCode 15.4 beta the sha is 287c2f83d888fc085fb6cef2328a6e46dd027399

Questions:

  • What can I do to diagnose further and fix this issue?
  • Where can I get more detailed logs than what I can see in the Console related to the DDI images (like the log visible in this thread)

Thanks

Tiry

Answered by Tiry in 785595022

I ended up finding the solution to the issue.

The problem is located in /Library/Developer that contains the Images in /Library/Developer/CoreSimulator/Images. These images are not the same depending on the version of XCode (I think) and some reasons they do not seem to belong to the same group.

This part of the FileSystem is by default ReadOnly thanks to SIP (System Integrity protection).

What I did is:

=> It now seems to work.

Accepted Answer

I ended up finding the solution to the issue.

The problem is located in /Library/Developer that contains the Images in /Library/Developer/CoreSimulator/Images. These images are not the same depending on the version of XCode (I think) and some reasons they do not seem to belong to the same group.

This part of the FileSystem is by default ReadOnly thanks to SIP (System Integrity protection).

What I did is:

=> It now seems to work.

Unable to mount DDI image for iOS 17.4.1 after XCode 15.4 beta upgrade
 
 
Q