I have tried quit and re-open my xCode, also restart my mac several time but still facing this issue.
Unable to run my code because of this:

I have tried quit and re-open my xCode, also restart my mac several time but still facing this issue.
Unable to run my code because of this:

It's probably because of Rosetta.
Go to Application -> Xcode -> Get Info -> uncheck Rosetta.
And restart your mac.