升级Xcode12后,模拟器run项目No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64,!

Xcode12报错 No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64,!
报错截图如下:

Xcode12报错 No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64,.png

1.网上查方法如下,但是没用

Build Settings中找到User-Defined,删掉

VALID_ARCHS.png

....

2.解决方法

原因是模拟器缺少x86_64指令集
在VALID_ARCHS中Debug模式下添加如图:

x86_64.png

添加x86_64后就可以了

你可能感兴趣的:(升级Xcode12后,模拟器run项目No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64,!)