Since I update Xcode to Xcode 12, I've got this error when I build:
Check dependencies
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64e armv7s arm64 arm7)
I try a lot of things:
pod install
Build Active Architecture Only
to No or to Yes for Debug and Release Don't know what to do. This error come when I want to launch on iOS 14, but in iOS 13.7 this work perfectly without change.
-- EDIT --
I solve my problem by adding arm64 arm64e armv7 armv7s x86_64
to VALID_ARCHS
, both in 'MyProject' and 'MyProjectTest', and it work now.
在 rosetta 中运行 Xcode(通过转到 .app 文件并单击“获取信息”,然后单击“在 rosetta 下运行”
M1 Mac:在 rosetta 中运行 Xcode(通过转到 .app 文件并单击“获取信息”,然后单击“使用 rosetta 打开”
在 Xcode 12、M1 芯片 macbook 中,我只需要在真实设备中运行应用程序就可以了
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.