Xcode版本升级到 12.0 以上之后, 在模拟器运行低版本报错:
building for iOS Simulator, but linking in object file built for iOS
解决方法
1.TARGETS
选中项目 → Build Settings
→ 搜索VALID_ARCHS
→ 加x86_64
2.Build Settings
→ 搜索Excluded Architecture
→ 加arm64
3.Build Settings
→ 搜索Build Active Architecture Only
→ 设置NO
之后模拟器运行即可