1.podfile中增加
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
2.修改pod中framework兼容的iOS最低版本(minimum deployments)为该项目的兼容版本;
3.在pod中,找到framework中的build setting,再找到 archtectures ,在excluded archtectures 中增加arm64
以上为M1编译报错常见的处理方法