电子邮件错误:“意外的CFBundleExecutable密钥”

问题描述:

我有一个问题,我无法解决提交我的应用程序时应用程序商店。该应用程序的部署目标是iOS 10.0电子邮件错误:“意外的CFBundleExecutable密钥”

我得到这个错误与许多第三方库,我使用CocoaPods来管理库和错误的报告是通过电子邮件发送,上传到App Store后:

Unexpected CFBundleExecutable Key - The bundle at '/Payload/APP_NAME.app/Target Support Files/FRAMEWORK_FOLDER/Info.plist' 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. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue

所以我试图消除CFBundleExecutable键,在CFBundlePackageType重点用BNDL,作为错误指示,也因为是我在很多论坛发现。但是,这样做,我不能运行Xcode中的应用,构建成功,但打开之前它会提示此消息:

Bundle at path /PATH/Payload/NAME.app/Frameworks/FRAMEWORK_NAME.framework has missing or invalid CFBundleExecutable in its Info.plist

和应用程序不运行。

因此,如果我尝试解决错误,应用程序将停止使用Xcode。我还没有找到一个不同的解决方案,我需要上传我的应用程序到App Store,顺便说一句,是我第一次上传它。 我也试过如果是与CocoaPods相关的东西,但还没有找到任何东西。另外,我试着设置Enable bitcode : NO,但是也没有工作):

有什么想法?

干杯!

我找到了解决办法:

确保,无论你的目标的Info.plist文件也没有任何的文件夹或通过的CocoaPods在“复制包资源”添加生成的文件在“建设阶段“你的目标应用程序。

在我的情况下,添加了“目标支持文件”文件夹,因此所有Info.plist文件的库。删除它解决了这个问题,我可以在最后提交应用程序!