无效的Swift支持/ swift的无效实现 [英] Invalid Swift Support / invalid implementation of swift

查看:341
本文介绍了无效的Swift支持/ swift的无效实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想上传一个用swift编写的应用程序。应用程序加载程序成功提供了应用程序,但几分钟后我得到了苹果的回复:

I'd like to upload an app written in swift. Application loader delivers the app successfully, but after a few minutes I get a reply by apple telling:


无效的Swift支持 - 捆绑包含一个无效的Swift实现。该应用可能已使用不合规或预发布工具构建或签名。访问developer.apple.com获取更多信息。

Invalid Swift Support - The bundle contains an invalid implementation of Swift. The app may have been built or signed with non-compliant or pre-release tools. Visit developer.apple.com for more information.

我使用xCode版本6.0.1(6A317),Swift iOS SDK 8.0和使用xcode构建应用程序。

I use xCode Version 6.0.1 (6A317), Swift iOS SDK 8.0 and just build the app with xcode.

在哪里可以找到有关如何获得有效swift实现的信息?
Apple没有说具体的内容。

Where can I find any information on how to get a valid implementation of swift? Apple does not say anything concrete.

Thx

推荐答案

<我遇到了类似的问题。
要修复它并能够将构建推送到iTunesConnect,我必须执行以下操作:

I had a similar problem. To fix it and be able to push a build to iTunesConnect I had to do the following:


  • 设置标志<$目标设置中的c $ c> EMBEDDED_CONTENT_CONTAINS_SWIFT 到 YES

  • 确保Build Phases不包含任何其他奇怪的目标

  • 退出来自Xcode的所有Apple Developper帐户和登录只有您要推送应用程序的帐户

  • 使用Application Loader存档并使用Xcode 和 NOT 提交应用

  • Set the flag EMBEDDED_CONTENT_CONTAINS_SWIFT to YES in the target settings
  • Be sure that Build Phases did not include any other weird targets
  • Logout all Apple Developper accounts from Xcode and login with just the one you want to push the app with.
  • Archive and submit the app with Xcode and NOT with Application Loader.

为什么我需要从所有Apple Developper帐户注销?

Why did I need to logout from all of my Apple Developper accounts?

因为Xcode不知道用于上传二进制文件的帐号。 Application Loader在开始时询问您,但之后,上传的版本无效...

Because Xcode does not know which account to use to upload the binary. Application Loader ask you in the beginning but then, the uploaded build isn't valid...

更新:

由于 Xcode 7.1 以及Swift的新版本,我再次收到错误消息。目前的解决方法是执行以下操作:

Since Xcode 7.1 and the new versions of Swift I got the error again. The current workaround is to do the following:


  • 在Xcode上本地创建存档(不适用于我的CI)

  • 在管理器上,导出它作为AppStore版本。

  • 使用Application Loader上传二进制文件。

  • Create an archive locally on Xcode (does not work on my CI)
  • On Organizer, export it as an AppStore build.
  • Use Application Loader to upload the binary.

几分钟后(~10),构建应该可以在iTunesConnect上使用。

After few minutes (~10) the build should be available on iTunesConnect.

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

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