flutter插件开发过程中,xcode运行example下的ios项目,报错Building for 'iOS-simulator', but linking in object file built for 'iOS'
解决方案:
在该项目的podfile文件中post_install处添加
target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64 i386'
最终像这样
然后运行pod clean ;pod install
再在vs中跑example项目,然后再在xcode中跑ios项目就不会报错了