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

posted @ 2021-12-13 10:08  ZhangShengjie  阅读(854)  评论(0编辑  收藏  举报