Hello!
When launching/debugging on my iPad and iPhone I keep getting the following error:
“Previous preparation error: Failed to find a DDI … Run ‘devicectl list preferredDDI’ …”
I believe this was caused by a previously interrupted Xcode update around June due to low disk space, which may have left DeviceSupport/DDI/CoreDevice files incomplete. Even after finishing the update later, the error persists. I now use a new Mac with 4 TB of storage, but the issue still occurs.
Since then I have unfortunately been blocked from testing or presenting my app on devices. It seems that only a new, fully completed Xcode update might resolve the problem.
Tried so far: – Cleared caches (CoreDevice/Devices) – Reset trust on device and re-paired – Checked devicectl list preferredDDI
I would really appreciate guidance, as at the moment I cannot present my app due to this blocking issue.
Thank you very much for your support!
No. Please do not delete all of Xcode and redownload it and resintall it. That's serious overkill for what is probably a very simple problem.
Per the OP, the issue was that the system resources installer got interrupted and left the system if a partially updated state... so just finish that process.
I suggest you run:
xcrun devicectl manage ddis update
That will probably address the issue. If not, the following will reinstallt he the system resources package (including the DDIs):
sudo installer -target / -pkg $(xcode-select -p)/../Resources/Packages/XcodeSystemResources_Full.pkg