美文网首页
flutter-- 打包遇到 bitcode 问题

flutter-- 打包遇到 bitcode 问题

作者: 请叫我大帅666 | 来源:发表于2021-06-19 14:34 被阅读0次

ld: '/Users/xxx/Library/Developer/Xcode/DerivedData/Runner/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/xxx/xxx.framework/xxx' does not contain bitcode . You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.

可能你的问题描述有点不同, 不过也是因为插件库没有使用 bitcode

image.png

这时你项目打包时, 上面也不能使用 bitcode

再加上下面这个:

 post_install do |installer|
     installer.pods_project.targets.each do |target|
          flutter_additional_ios_build_settings(target)

              if target.name =="Runner" || target.name =="Flutter"
                    target.build_configurations.each do |config|
                    config.build_settings['ENABLE_BITCODE'] ='NO'
              end

          end
      end
end

target.name 改成你的 target 名称
加上上面代码后 pod install 一下

这个问题就解决了

相关文章

网友评论

      本文标题:flutter-- 打包遇到 bitcode 问题

      本文链接:https://www.haomeiwen.com/subject/owaryltx.html