M1芯片使用pod报错 *** for architecture arm64

1、添加如下配置 pod 和 工程都需要修改

 2、Podfile最后添加如下代码

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

3、pod install

原文地址:https://www.cnblogs.com/ZhangShengjie/p/15681901.html