‘App.app/Frameworks/Flutter.framework/Flutter‘ contains incomplete bitcode

2025-07-21 11:06Flutter

上传时报错:

Asset validation failed Invalid Bundle Executable. The executable file ‘App.app/Frameworks/Flutter.framework/Flutter’ contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu

  1. 右键点击当前的archive,点击 Show in Finder image.png

  2. 在Finder中,直接对 xxxx.xcarchive (如:Runner 2025-7-21, 10.27.xcarchive) 右键查看包内容,进入Products/Applications/App.app,看到App.app之后,继续右键点击“显示包内容”,从而进入‘App.app/Frameworks/Flutter.Framework’目录。

  3. cd到第二步找到的文件夹,执行 otool -l Flutter | grep __LLVM | wc -l ,这里会展示非0的结果,说明是包含bitcode的。

  4. 执行:xcrun bitcode_strip -r Flutter -o Flutter,而后继续使用第三步的命令检查结果,为0后,重新在xcode的Archives窗口(在Xcode中,Window -> Organizer)对刚才的archive进行上传就可以了