The error os cause by missing compatible architecture. This can happen due to Cocoapods or any other tool which does not run natively. Here is how you can resolve this issue.
Quit Xcode
Go to Applications folder and right click Xcode and click Get Info.
Check "Open using Rosetta"
Launch Xcode again and archive/ build.