Not sure if this works for others, but at least this works for me
I do have an apple watch, so I shutdown the apple watch, then it works.
So I guess the issue should be somehow Xcode detects other devices.
If you don't have an apple watch, maybe can try to make sure no other apple devices can be detected by Xcode.
Good Luck.