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

查看:34
本文介绍了无效的 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.

谢谢

推荐答案

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

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

  • 在目标设置中将标志 EMBEDDED_CONTENT_CONTAINS_SWIFT 设置为 YES
  • 确保构建阶段不包含任何其他奇怪的目标
  • 注销 Xcode 中的所有 Apple Developper 帐户,然后仅使用您想要推送应用程序的帐户登录.
  • 使用应用程序加载器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)
  • 在 Organizer 上,导出它作为 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天全站免登陆