Archive upload error: ERROR ITMS-90207 - The bundle does not contain a bundle executable

Archive upload error: ERROR ITMS-90207 - The bundle does not contain a bundle executable

我在 Swift 2.1.1 和 Xcode 7.2 中开发了一个 iOS 应用程序。该应用程序运行完美,Xcode 创建存档没有问题,但在将其上传到应用程序商店 (iTunes Connect) 时,我收到以下错误:

ERROR ITMS-90207: "Invalid Bundle. The bundle at 'My App Name.app' does not contain a bundle executable."

我已经尝试了所有我能找到的建议,但没有任何改进。我该如何解决这个问题?我怎样才能找到原因?有解决方法吗?

我在 CocoaPods 中使用了多个库,我的 Podfile:

platform :ios, '8.0'
use_frameworks!

target 'My App Name' do
    pod 'RealmSwift'
    pod 'SwiftDateExtension'
    pod "JDFTooltips"
end
target 'My App NameTests' do
    pod 'RealmSwift'
end

我的Info.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleExecutable</key>
    <string>$(EXECUTABLE_NAME)</string>
    <key>CFBundleIdentifier</key>
    <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>$(PRODUCT_NAME)</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>1</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>NSHumanReadableCopyright</key>
    <string>Text removed</string>
    <key>NSLocationAlwaysUsageDescription</key>
    <string>Text removed</string>
    <key>UILaunchStoryboardName</key>
    <string>Launch Screen</string>
    <key>UIMainStoryboardFile</key>
    <string>Main</string>
    <key>UIRequiredDeviceCapabilities</key>
    <array>
        <string>armv7</string>
    </array>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
</dict>
</plist>

我尝试了所有我能找到的建议,包括:

原来 NSHumanReadableCopyright 破坏了 Info.plist。从 Info.plist 中完全删除密钥解决了问题(仅删除 © 字符是不够的)。

我认为对于遇到类似问题的任何人来说,尝试提交具有默认的、未修改的 Info.plist 的存档以查看是否可行是一个公平的建议。根据我的经验,您可以根据需要多次提交,所以请不要犹豫进行试验。

我添加了密钥,因为 Apple 在其文档中建议这样做:https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringYourApp/ConfiguringYourApp.html#//apple_ref/doc/uid/TP40012582-CH28-SW29。 当他们无法解释 Info.plist.

时,他们的验证过程中断并指向可执行文件似乎很奇怪和愚蠢