M1 building for iOS Simulator, but linking in dylib built for iOS

20 阅读1分钟

下面可以解决模拟器报错的问题 

1 在项目中设置排除arm64架构

2 这位于 Podfile 的末尾

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