"Invalid Swift Support - The SwiftSupport folder is missing" 与 Xcode 7.3.1

"Invalid Swift Support - The SwiftSupport folder is missing" with Xcode 7.3.1

使用 Application Loader 提交应用程序更新后,我收到了来自 Apple 的这封电子邮件:

We have discovered one or more issues with your recent delivery for "[App Name]". To process your delivery, the following issues must be corrected:

Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it.

Once these issues have been corrected, you can then redeliver the corrected binary.

我已确认此二进制文件是使用最新的 Xcode GM (7.3.1) 构建的,因此这不是问题所在。我在网上看到了针对此问题的各种潜在修复方法,但希望通过提供更多详细信息,有人可以帮助我找出具体的解决方案。

此处的解决方案在 中。我们需要使用带有 xcodebuild 的新 -exportOptionsPlist 标志,而不是旧的 -exportFormat-exportWithOriginalSigningIdentity 标志。 plist 只需要将 method 键设置为 app-store.

就我而言,我只是向项目添加了冗余 swift 文件,它解决了问题。

您应该在创建 ipa 文件时选择 "Save for iOS App Store Deployment" 而不是 "Save for Ad Hoc Deployment" 选项。

根本原因是供应配置文件是临时的,它不会在 ipa 中创建 SwiftSupport 目录。该文件夹是使用 app-store 作为导出方法创建的,因此当我将配置文件更新为 app-store.

时它对我有用

Reference

使用此https://github.com/ndpiparava/Swift_StripArm64e 脚本文件从 .app 文件中删除 arm64e

..尼廷

我在通过 Transporter 应用程序将 .ipa 文件上传到 App Store Connect 后收到了同一封电子邮件。以下是我出错的地方:我使用临时分发应用程序。

以下步骤是我的错误的解决方案:

  1. 存档应用程序
  2. 在 TestFlight 和 App Store 上分发
  3. 导出
  4. 在新创建的导出文件夹中打开ExportOptions.plist
  5. 如果您像我一样上传到 App Store Connect/TestFlight,请确保 method 属性 的值为 app-store
  6. 将导出的 .ipa 文件拖放到 Transporter.
  7. 交付您的应用以上传它。

就是这样!

原始答案在这里:

EXPO 位用户。 我在 expo build:ios 遇到了这个问题,这让我困惑了好几天。 来自 expo 服务器的构建大约为 39mbs,远小于以前的版本。

要修复它,我必须使用

expo build:ios -c

这会重置所有凭据(我对所有问题都说是)然后重建应用程序。生成的 ipa 文件是 250mbs,现在一切正常。