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:
- 在 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
- 脚本里的
framework_paths
数组,就是审核报错的三方库,在 Xcode 里全局搜索,找到对应的路径,写到framework_paths
数组里,然后重新执行pod install
,最后打包提审即可
截屏.png
参考文章
https://blog.csdn.net/qinqi376990311/article/details/142493593
https://blog.csdn.net/yunhuaikong/article/details/142870773