flutter-- 打包遇到 bitcode 问题

2021-06-19  本文已影响0人  请叫我大帅666

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 一下

这个问题就解决了

上一篇 下一篇

猜你喜欢

热点阅读