flutter-- 打包遇到 bitcode 问题

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

这个问题就解决了

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容