Upgrade xcode12 encountered no architectures to compile for (only_ ACTIVE_ ARCH=YES

Time:2020-10-7

Today, after upgrading Xcode, the simulator reported an error,

This is because the emulator lacks x86_ 64 instruction set, we need to modify valid in Xcode targets_ Arch, add the instruction set you are missing, as shown in the figure:

You need to add x86 after debug_ 64, after running again