Xcode16 打包传商店,三方库报 bitcode 问题

Q: 我们用 Xcode16 打包传应用商店时,遇到审核报错

Hello,

We noticed one or more issues with a recent delivery for the following app:

xxx
Version xxx
Build xxx
Please correct the following issues and upload a new binary to App Store Connect.

ITMS-90668: Invalid Bundle Executable - The executable file 'xxx.app/Frameworks/FlowCtrl.framework/FlowCtrl' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu.

ITMS-90482: Invalid Executable - The executable 'xxx.app/Frameworks/AgoraCore.framework/AgoraCore' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'xxx.app/Frameworks/AgoraRtcKit.framework/AgoraRtcKit' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'xxx.app/Frameworks/AgoraSoundTouch.framework/AgoraSoundTouch' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'xxx.app/Frameworks/Agorafdkaac.framework/Agorafdkaac' contains bitcode.

ITMS-90482: Invalid Executable - The executable 'xxx.app/Frameworks/Agoraffmpeg.framework/Agoraffmpeg' contains bitcode.

Apple Developer Relations

2025-06-06 更新一次报错,这个也是同样的问题

Validation failed (409)
Invalid Bundle Executable. The executable file 'xxx.app/Frameworks/FlowCtrl.framework/FlowCtrl' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu. (ID: xxxxxxxxx)

A:

  1. 在 podfile 文件里添加脚本
# 处理上传 AppStore 时三方库报 bitcode 的问题,把有问题的库路径,放到 framework_paths 里即可
bitcode_strip_path = `xcrun --find bitcode_strip`.chop!
  def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
    framework_path = File.join(Dir.pwd, framework_relative_path)
    command = "#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}"
    puts "Stripping bitcode: #{command}"
    system(command)
  end
  framework_paths = [
    "/Pods/aaa/aaaSDK/bbbSDK/FlowCtrl.framework/FlowCtrl",
  ]
  framework_paths.each do |framework_relative_path|
    strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
  end
  1. 脚本里的 framework_paths 数组,就是审核报错的三方库,在 Xcode 里全局搜索,找到对应的路径,写到 framework_paths 数组里,然后重新执行 pod install,最后打包提审即可
    截屏.png

参考文章
https://blog.csdn.net/qinqi376990311/article/details/142493593
https://blog.csdn.net/yunhuaikong/article/details/142870773

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

推荐阅读更多精彩内容