Xcode 12 - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64e armv7s arm64 arm7)
If you can't see "VALID_ARCHS" in BuildSettings. You can click the plus button.
click "Add User-Defined Setting"
Input setting name "VALID_ARCHS" , input value "arm64 arm64e armv7 armv7s x86_64"
Theorectically it should be enough changing debug from yes to no.
But as you said it did not work it must be that you have to set VALID_ARCHS
to what you have plus x86_64
.
Go to your App's target and select 64 bit standard architectures in Architectures section. See attached screenshot