building for iOS Simulator, but linking in object file built for iOS

Xcode升级到12.x后,运行低版本RN项目到模拟器中时出现以下报错

building for iOS Simulator, but linking in object file built for iOS

用到其中的解决方案:

第一步

VALID_ARCHS 加上 x86_64

第二步

Excluded Architecture 加上 arm64
Build Active Architecture Only 设置为 NO


注意:真机运行和打包时,要去掉VALID_ARCHS中的x86_64Excluded Architecture中的arm64

有需要开发项目的可以联系我
(原文链接:https://www.jianshu.com/p/55d290a204e7)

你可能感兴趣的:(building for iOS Simulator, but linking in object file built for iOS)