You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter集成firebase_messaging插件提交iOS应用至App Store Connect时遇CFBundleExecutable验证错误的永久解决方法咨询

Flutter集成firebase_messaging插件提交iOS应用至App Store Connect时遇CFBundleExecutable验证错误的永久解决方法咨询

各位好,我目前在使用Flutter开发项目,集成了firebase_messaging插件(版本15.2.9)。但当我把打包好的.ipa文件提交到App Store Connect时,遇到了如下验证错误:

Unexpected CFBundleExecutable Key. The bundle at 'Payload/Runner.app/firebase_messaging_Privacy.bundle' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL.

我已经尝试了以下几种方法,但都没有解决问题:

  • 手动编辑firebase_messaging_Privacy.bundle里的Info.plist,移除CFBundleExecutable键并添加CFBundlePackageType = BNDL
  • 在Xcode的Build Phases中添加一个后期处理脚本,用来修改这个Info.plist
  • 针对iOS平台,临时从Podfile中移除firebase_messaging插件
  • 在导出ipa之前,手动修改归档后的.xcarchive文件

这些方法都没用,因为每次我构建或者归档项目时,这个Info.plist都会被重新生成,CFBundleExecutable键又会被加回来。

有没有什么能和Flutter构建系统兼容的永久解决办法?不管是CI脚本、Podfile补丁还是Xcode钩子,只要能解决问题的可行方案都可以,非常感谢!

内容来源于stack exchange

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.07 10:43:10