This did work for me:
https://developer.apple.com/forums/thread/847303
Rosetta installation was missing for old commandLineTools mistakenly being used.
Topic:
Developer Tools & Services
SubTopic:
Xcode