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
相关产品推荐
相关产品推荐

