Xcode12模拟器运行时报错“... for architecture arm64”

最近维护老项目,发现其使用了很多SDK,但在Xcode12的模拟器中运行会报错
"xxxx.a' for architecture arm64”

原因:参见Xcode 12 Release Notes

image.png

Xcode12不在支持Valid Architectures构建设置,取而代之的是Excluded Architectures build setting (EXCLUDED_ARCHS)

具体解决办法:
第一步:在主项目和pod项目的PROJECT的Build Settings中,搜索Excluded Architecture ,添加 Any iOS Simulator SDK,value填入 arm64

第二步:在主项目和pod项目的PROJECT的Build Settings中,删除VALID_ARCHS(整个删除,不能只删除value留下Key)

具体参见:
https://blog.csdn.net/babylv1/article/details/109395657

你可能感兴趣的:(Xcode12模拟器运行时报错“... for architecture arm64”)