Just for anyone facing the same issue, I was able to finally get past this error with these steps:
(1) ran sudo rm -rf /Library/Developer/DeveloperDiskImages/*
(2) ran xcrun devicectl manage ddis update but it seemed to hang, so I restarted my Mac (terminated the process) then
(3) I then run xcrun devicectl list preferredDDI and it was empty so
(4) I ran xcrun devicectl manage ddis update and this time it successfully updated the disk images and was able to build to my IPhone again.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: