错误 ITMS-90207 苹果商店提交

ERROR ITMS-90207 Apple Store Submisson

当我在模拟器或设备上 运行 我的应用程序运行良好(用于调试和发布构建配置)。但是当我尝试将我的应用程序提交到 Apple Store 时,出现以下错误:

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

我尝试使用 Xcode 和 Application Loader 上传存档,但没有成功。

我尝试了本主题 () 中的一些解决方案,但其中 none 适用于我的项目:

也许此错误与 Xcode 版本有关...我的 mac 是 运行 macOS Sierra Version 10.12.6 Beta (16G8c ), Xcode 版本 8.3.2 (8E2002) 和应用程序加载器版本 3.0 (620)。

欢迎任何帮助。

更新:

我用Xcode 8.2试了一下,还是一样的错误。

这是我的 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>CFBundleAllowMixedLocalizations</key>
    <true/>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleDisplayName</key>
    <string>APPNAME</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>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>fb000000</string>
            </array>
        </dict>
    </array>
    <key>CFBundleVersion</key>
    <string>639</string>
    <key>FacebookAppID</key>
    <string>000000</string>
    <key>FacebookDisplayName</key>
    <string>APPNAME</string>
    <key>FirebaseAppDelegateProxyEnabled</key>
    <false/>
    <key>LSApplicationQueriesSchemes</key>
    <array>
        <string>fbapi</string>
        <string>fb-messenger-api</string>
        <string>fbauth2</string>
        <string>fbshareextension</string>
    </array>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>NSCameraUsageDescription</key>
    <string>Description...</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>Description...</string>
    <key>NSPhotoLibraryUsageDescription</key>
    <string>Description...</string>
    <key>UIBackgroundModes</key>
    <array>
        <string>location</string>
    </array>
    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
    <key>UIMainStoryboardFile</key>
    <string>Main</string>
    <key>UIRequiredDeviceCapabilities</key>
    <array>
        <string>armv7</string>
    </array>
    <key>UIStatusBarTintParameters</key>
    <dict>
        <key>UINavigationBar</key>
        <dict>
            <key>Style</key>
            <string>UIBarStyleDefault</string>
            <key>Translucent</key>
            <false/>
        </dict>
    </dict>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UIViewControllerBasedStatusBarAppearance</key>
    <false/>
</dict>
</plist>

UDPATE 2:

我设法用 Xcode 8.2.1 从另一个 mac 发布了存档。 我在 mac 上尝试使用 Xcode 版本 8.2 和 8.2.1,但我仍然遇到相同的错误。 我也尝试过 Application Loader 版本 3.0 和 3.6,但没有成功...... 所以看起来,问题来自我的mac。我不知道该怎么办。

我已经联系了 Apple 开发者技术支持,正如@Larme 在上面的评论中所建议的那样,错误是由于我的 macOS 测试版造成的。

这是完整的 Apple 支持回答:

I looked at the .ipa you provided that was giving trouble, and compared it to the one successfully submitted to the App Store. The one giving you trouble was built on a beta version of macOS, which is not supported for distribution. Apps released to the App Store need to be built for a GM version of macOS, with a GM version of Xcode, using a GM version of the iOS SDK.

Normally, apps submitted with any beta software receive a message indicating this problem, and the message you received was completely misleading.

我将填写 Bug Reporter 表单来报告此错误。
谢谢大家的帮助。

可笑的是,如果您尝试使用 XCode 9.1 提交 9.0 部署目标应用程序,您也会遇到此错误。将部署目标切换到 11.1 "fixed" 它。

我的预感是和这个有关:https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html

"Deprecations: Apps with a deployment target of iOS 11 no longer build a 32-bit slice. To build and include a 32-bit slice, set the deployment target to an earlier version of iOS. (32163517)"