Flutter iOS编译报错提示does not contain bitcode. You must rebuild it with bitcode enabled

1 .打开 项目目录/ios/Podfile

  1. 按照以下代码注释和新增

## 注释掉

# post_install do |installer|

#  installer.pods_project.targets.each do |target|

#    flutter_additional_ios_build_settings(target)

#  end

#end

## 新增

post_install do |installer|

  installer.pods_project.targets.each do |target|

    flutter_additional_ios_build_settings(target)

    target.build_configurations.each do |config|

      config.build_settings['ENABLE_BITCODE'] = 'NO'

    end

  end

end

你可能感兴趣的:(Flutter iOS编译报错提示does not contain bitcode. You must rebuild it with bitcode enabled)