无效的包 Info.plist 为 CFBundleExecutable 键指定了一个不存在的文件

Invalid Bundle Info.plist specifies a non-existent file for the CFBundleExecutable key

我已将 Xcode 7 和 运行 更新到以下问题,当我尝试存档并将我的应用程序更新发送到 iTunes connect 时。

We have discovered one or more issues with your recent delivery.
To process your delivery, the following issues must be corrected:
Invalid Bundle - Info.plist specifies a non-existent file for the CFBundleExecutable key. 
Once these issues have been corrected, you can then redeliver the corrected binary.

我尝试删除 CFBundleExecutable,但我无法构建目标。这与一些 google 签名 sdk 问题有关,不是我的问题。 来源:

我唯一能找到的另一件事是 https://github.com/danielgindi/ios-charts/issues/442 但这又不是我使用的库。

在 iTunesConnect 中,它显示上传仍处于 "processing" 状态,并且由于问题而无法使用。 我还尝试清理和删除调试和 bin 文件夹。

CFBundleExecutable 设置为Executetable_name

<key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string>

我让它开始工作,但不知道它到底是怎么回事。我将 OS X 从 Yosemite 更新为 El Capitan (10.11)。然后 Xcode 在启动时有一些组件要更新,它没有指定,它仍然是 Xcode 版本 7.0.1 (7A11001)。最后改变的是 iTunes Connect 界面(2015 年 9 月至 10 月),所以他们可能有一些 maintenance/update 搞砸了,因为它在 iTunes Connect 中被标记为 "processing"。

您的项目中是否包含任何 .bundle

如果这样做,请检查其内容,并确保它不包含任何 plist,并且此 plist 不包含 CFBundleExecutable 键。 (在您的工作区中广泛搜索 CFBundleExecutable 可能会提示您此问题的来源...)

在我的例子中,简单地删除整个 Instabug.bundle 就可以了,尽管你可能想使用这样的第三方,所以你可以编辑 plist删除这个有问题的密钥...