Same Issue on M1, and here is a temporary solution.
The cause of this issue is M1.
Before testing,
Select My Mac (Rosetta) rather than My Mac on top-left selector of Xcode mid-pane.
Then everything works fine.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: