I can confirm that removing the Rosetta option from the Xcode.app solves the problem
Of course only if you have a M1 or M2 Mac (time for a change ???) In addition it compiles much faster!
Kudos to the community
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: