“无效的 Swift 支持 - 缺少 SwiftSupport 文件夹";使用 Xcode 7.3.1 [英] "Invalid Swift Support - The SwiftSupport folder is missing" with Xcode 7.3.1

查看:96
本文介绍了“无效的 Swift 支持 - 缺少 SwiftSupport 文件夹";使用 Xcode 7.3.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

After submitting an app update using Application Loader, I got this email from 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:

无效的 Swift 支持 - 缺少 SwiftSupport 文件夹.重建您的应用程序使用当前公共 (GM) 版本的 Xcode 并重新提交

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) 构建的,所以这不是问题.我在网上看到了针对此问题的各种可能的修复方法,但希望通过提供更多详细信息,有人可以帮助我找出具体的解决方案.

I have confirmed that this binary was built with the latest Xcode GM (7.3.1), so that is not the issue. I have seen a wide variety of potential fixes for this problem online but was hoping that by giving further details somebody might be able to help me figure out the specific solution.

  • 使用 Application Loader 3.5 提交了一个 IPA 文件,没有任何问题.
  • 该应用的先前版本不使用 Swift,但此次更新使用.
  • 嵌入式内容包含 Swift 代码"构建设置设置为 NO.我的理解是,如果我们有一个纯Objective-C目标,这应该只是YES取决于 Swift 或混合目标.
  • 该项目使用 CocoaPods,但本次更新的 Pod 中没有任何变化.
  • 该应用的先前版本包含 WatchKit 应用和扩展程序,但本次更新不包含.
  • 在使用相同构建生成的 xcarchive 中,有 SwiftSupport 文件夹.它包含一个名为 iphoneos 的子文件夹,其中包含多个 Apple Swift 库,例如 libswiftFoundation.dylib.
  • 如果我将 .ipa 文件重命名为 .zip 并解压它,它的应用包不包含 SwiftSupport 文件夹,但是包含具有相同 Swift dylib 的 Frameworks 文件夹.
  • Submitted an IPA file using Application Loader 3.5 with no problems.
  • The previous version of the app does not use Swift, but this update does.
  • The "Embedded Content Contains Swift Code" build setting is set to NO. My understanding is that this should only be YES if we have a pure Objective-C target that depends on a Swift or mixed target.
  • The project uses CocoaPods, but nothing has changed in our pods for this update.
  • The previous version of the app included a WatchKit app and extension, but this update does not.
  • Inside an xcarchive generated with the same build, the SwiftSupport folder is there. It contains a subfolder called iphoneos which contains several Apple Swift libraries like libswiftFoundation.dylib.
  • If I rename the .ipa file to .zip and unarchive it, its app package does not contain a SwiftSupport folder, but does contain a Frameworks folder with the same Swift dylibs.

推荐答案

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

The solution here was in this answer. We needed to use the new -exportOptionsPlist flag with xcodebuild instead of the older -exportFormat and -exportWithOriginalSigningIdentity flags. The plist just needs to have the method key set to app-store.

这篇关于“无效的 Swift 支持 - 缺少 SwiftSupport 文件夹";使用 Xcode 7.3.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆