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

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

问题描述

使用Application Loader提交应用更新后,我从Apple收到此电子邮件:

After submitting an app update using Application Loader, I got this email from Apple:


我们发现了一个或多个问题最近交付
[App Name]。要处理您的交付,必须更正以下问题

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代码构建设置设置为我的理解是,如果我们有一个 YES 纯粹的Objective-C目标依赖于Swift或混合目标。

  • 该项目使用CocoaPods,但我们的pod中没有更改此更新。

  • 该应用程序的先前版本包括WatchKit应用程序和扩展程序,但此更新不包括。

  • xcarchive 内生成同样的构建, SwiftSupport 文件夹就在那里。它包含一个名为 iphoneos 的子文件夹,其中包含几个Apple Swift库,如 libswiftFoundation.dylib

  • 如果我将 .ipa 文件重命名为 .zip 并取消归档,则其app包不包含一个 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.

推荐答案

这里的解决方案是在这个答案。我们需要使用新的 -exportOptionsPlist 标记与 xcodebuild 而不是旧的 -exportFormat -exportWithOriginalSigningIdentity 标志。 plist只需将方法键设置为 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天全站免登陆