M1 Xcode模拟器运行报错

2,389 阅读1分钟

解决方案有两种

1. podfile中加入下列代码,重新pod install

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
  end
end

2. pods项目文件加入下列设置

这种方案有个缺点是每次pod install或者pod update完后,此处设置会重置,需要再次添加设置

image.png