由于我将Xcode更新为Xcode 12,所以在构建时出现以下错误:
Check dependencies
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64e armv7s arm64 arm7)
我try 了很多东西:
- 通过
pod install
卸载/重新安装Pods -
Build Active Architecture Only
至No或Debug和Release至Yes - Pods项目也是如此
不知道该怎么办.当我想在iOS 14上启动时,会出现这个错误,但在iOS 13.7中,这个错误完全可以正常工作,没有任何改变.
-- EDIT --
我通过在"MyProject"和"MyProjectTest"中添加arm64 arm64e armv7 armv7s x86_64
到VALID_ARCHS
来解决我的问题,现在它可以工作了.