无效的 Swift 支持 - 文件不在正确的位置 [英] Invalid Swift Support - Files not in right location

查看:48
本文介绍了无效的 Swift 支持 - 文件不在正确的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试将新版本上传到 iTunes Connect 以更新应用程序.我第一次使用 xCode 6,但收到一封来自 Apple 的电子邮件,说明了这一点:

I've been trying to upload a new build to iTunes Connect to update an app. I first used xCode 6 but got a email from Apple stating this:

亲爱的开发者:

我们发现您最近的应用"交付存在一个或多个问题.要处理您的交付,必须更正以下问题:

We have discovered one or more issues with your recent delivery for "App". To process your delivery, the following issues must be corrected:

无效的 Swift 支持 - 文件 libswiftDarwin.dylib、libswiftDispatch.dylib、libswiftCoreGraphics.dylib、libswiftUIKit.dylib、libswiftContacts.dylib、libswiftCore.dylib、libswiftCoreAudio.dylib、libswiftFoundation.dylib、libswiftXCTest.dylib、libswiftCoreObject.dylib、libswiftCoreObject.dylib.dylib 不在预期位置/Payload/App.app/Frameworks.

Invalid Swift Support - The files libswiftDarwin.dylib, libswiftDispatch.dylib, libswiftCoreGraphics.dylib, libswiftUIKit.dylib, libswiftContacts.dylib, libswiftCore.dylib, libswiftCoreAudio.dylib, libswiftFoundation.dylib, libswiftXCTest.dylib, libswiftCoreImage.dylib, libswiftObjectiveC.dylib aren’t at the expected location /Payload/App.app/Frameworks.

将文件移动到预期位置,使用当前公共 (GM) 版本的 Xcode 重建您的应用,然后重新提交.

Move the file to the expected location, 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.

我认为这是一个简单的修复,所以我只是更新到最新的 GM (Xcode 7.2) &完成了 Swift 2 迁移,但是我收到了相同的电子邮件.有人可以解释如何解决这个问题以及这些文件是什么吗?这不是在其他问题中看到的文件不匹配"问题.

I thought it was a simple fix, so I just updated to the latest GM (Xcode 7.2) & completed the Swift 2 migration, however I received the same email. Could someone explain how to solve this and what those files are? This isn't a "files don't match" problem as seen in other questions.

推荐答案

我偶然发现了这个,因为我遇到了同样的问题.这是我第一次负责处理向 App Store 发布 Swift 应用程序的任务.

I stumbled upon this as I've encountered the same problem. It's the first time I've been tasked with handling the release of a Swift app to the App Store.

我发现 TALAA 的这个答案很有效:https://stackoverflow.com/a/26949219/1567836

I found that this answer by TALAA works a treat: https://stackoverflow.com/a/26949219/1567836

Build Settings 中有一个Embedded Content Contains Swift Code"标志需要设置为YES.设置好之后,在重新构建之前清理项目.

清理后,您必须重新创建一个构建版本以上传到 App Store.您可能会发现新上传将被拒绝,声称该号码已存在二进制文件.如果您更新内部版本号(必须大于前一个),则新上传的文件将被接受.

After the clean, you'll have to recreate a build to upload to the App Store. You might find that the new upload will get rejected claiming that a binary already exists for that number. If you update the build number (has to be larger than the previous one) then the new upload will be accepted.

这篇关于无效的 Swift 支持 - 文件不在正确的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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