无效的Swift Support/SwiftSupport文件夹为空 [英] Invalid Swift Support / The SwiftSupport folder is empty

查看:983
本文介绍了无效的Swift Support/SwiftSupport文件夹为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

环境:Xcode 7 GM

Environment: Xcode 7 GM

我已成功使用Xcode成功上传iOS应用,且未出现错误.该应用程序是用Objective-C和Swift编写的.

I uploaded iOS app successfully using Xcode without error. This app is written in Objective-C and Swift.

但是,成功上传后,我立即从Apple收到了一封电子邮件,指出了此错误:

However, immediately after successful upload, I got this email from Apple stating this error:

无效的Swift支持-我们发现您最近交付的XXXXX(我的应用名称)存在一个或多个问题.要处理您的交货,必须更正以下问题:

Invalid Swift Support - We have discovered one or more issues with your recent delivery for XXXXX(my app name). To process your delivery, the following issues must be corrected:

无效的Swift支持-SwiftSupport文件夹为空.使用当前的Xcode公共(GM)版本重建您的应用,然后重新提交.

Invalid Swift Support - The SwiftSupport folder is empty. 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.

有人对此问题有解决方案吗?

Anybody has a solution against this issue?

我已经确认了以下问题.

I have already confirmed below issues.

存档(.xcarchive文件)中的"SwiftSupport/iphoneos/"库等于"Products/Applications/myApp.ipa/Frameworks/"

"SwiftSupport/iphoneos/" libraries in archives(.xcarchive file) is equaly to "Products/Applications/myApp.ipa/Frameworks/"

我的有效架构"设置是显示"armv7k"的"$(ARCHS_STANDARD)".

My "Valid Architectures" setting is "$(ARCHS_STANDARD)" displaying "armv7k".

将供应"配置文件设置为分别在iTunes connect中创建的开发"和发行".

Provisioning profile is set to Dev and Release which has been created in iTunes connect, respectively.

然后,在我的编辑方案"中,未在存档中选中测试目标".

And, in my "Edit scheme", Test target is unchecked at Archive.

推荐答案

重要说明:这仅适用于使用swift的项目,请参见

important note: this only works for projects that do not use swift, see comment below

我刚刚遇到了相同的问题,并通过进行以下更改来解决了该问题- 如果您曾经在项目中包含Swift文件,但随后又将其删除,则只需在构建选项"中将嵌入式内容包含Swift代码"设置为NO.

I just met the same issue and resolved it by making the following change - If you used to have Swift files in your project but then removed them, you only need to set "Embedded Content Contains Swift Code" to NO in Build Options.

这篇关于无效的Swift Support/SwiftSupport文件夹为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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