apple silicon ?
If yes, try the following.
Quit Xcode completely
Go to finder -> Applications
Right Click on Xcode and select "Get Info"
Check Rosetta
Try again
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: