无效的 Swift 支持 - 文件不匹配 [英] Invalid Swift Support - Files don’t match

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

问题描述

我刚刚在 Swift 2 中重新编写了一个应用程序.我正在尝试将该应用程序上传到 iTunesConnect(通过 Xcode 7 GM)进行内部测试.

I just re-wrote an app in Swift 2. I'm trying to upload the app to iTunesConnect (via Xcode 7 GM) for internal testing.

我与无效的 Swift 支持"错误搏斗了一段时间(其中有其他相关问题) ...但现在它变成了一些不同的东西.

I wrestled with an "Invalid Swift Support" error for awhile (which has other, related questions) ... but now it's changed to something a little different.

Apple 的错误现在说:

The error from Apple now says:

无效的 Swift 支持

文件 libswiftCoreLocation.dylib、libswiftCoreMedia.dylib、libswiftCoreData.dylib、libswiftAVFoundation.dylib 不匹配

The files libswiftCoreLocation.dylib, libswiftCoreMedia.dylib, libswiftCoreData.dylib, libswiftAVFoundation.dylib don’t match

/Payload/App.app/Frameworks/libswiftCoreLocation.dylib、/Payload/App.app/Frameworks/libswiftCoreMedia.dylib、/Payload/App.app/Frameworks/libswiftCoreData.dylib、/Payload/App.app/Frameworks/libswiftAVFoundation.dylib

/Payload/App.app/Frameworks/libswiftCoreLocation.dylib, /Payload/App.app/Frameworks/libswiftCoreMedia.dylib, /Payload/App.app/Frameworks/libswiftCoreData.dylib, /Payload/App.app/Frameworks/libswiftAVFoundation.dylib

确保文件正确 (?),重新构建您的应用,然后重新提交.

Make sure the files are correct (?), rebuild your app, and resubmit it.

不要对

/Payload/App.app/Frameworks/libswiftCoreLocation.dylib、/Payload/App.app/Frameworks/libswiftCoreMedia.dylib、/Payload/App.app/Frameworks/libswiftCoreData.dylib、/Payload/App.app/Frameworks/libswiftAVFoundation.dylib.

/Payload/App.app/Frameworks/libswiftCoreLocation.dylib, /Payload/App.app/Frameworks/libswiftCoreMedia.dylib, /Payload/App.app/Frameworks/libswiftCoreData.dylib, /Payload/App.app/Frameworks/libswiftAVFoundation.dylib.

我一直无法通过搜索不应用后处理"、确保文件正确,重建您的应用,然后重新提交"等来找到类似的错误.

I've been unable to find similar errors by searching for "Don’t apply post-processing", "Make sure the files are correct, rebuild your app, and resubmit it", etc.

有谁知道我如何确保文件正确无误"——或者——有任何其他建议?谢谢.

推荐答案

同样的问题.我认为这很可能是与 Bitcode 相关的开发者工具的错误.

Same problem here. I think this is most likely a bug of the Developer Tools, related to the Bitcode.

我刚刚找到了解决方法.

I just found the workaround for this.

  1. 使用新版本号归档您的应用:(
  2. 从管理器在 Finder 中显示"在 Finder 中查找存档(.xcarchive 文件)
  3. 打开包并找到Products/Applications/YourApp.ipa/Frameworks/SwiftSupport/iphoneos/等目录
  4. 所有libswiftXxx.dylib文件从SwiftSupport/iphoneos/复制到Products/Applications/YourApp.ipa/Frameworks/ 并覆盖
  5. 现在,从 Organizer 上传到 App Store
  1. Archive your app with new build number :(
  2. Find the archive (.xcarchive file) in Finder from Organizer "Show in Finder"
  3. Open the package and find directories like Products/Applications/YourApp.ipa/Frameworks/ and SwiftSupport/iphoneos/
  4. Copy all libswiftXxx.dylib files from SwiftSupport/iphoneos/ into Products/Applications/YourApp.ipa/Frameworks/ and overwrite
  5. Now, Upload to App Store from Organizer

通过这个过程,我成功上传了我的构建.现在我在等待审核.

With this process, I succeed in uploading my build. Now I’m waiting for review.

注意:

我正在使用 CocoaPods,ENABLE_BITCODE 选项为 NO.

I’m using CocoaPods, and the ENABLE_BITCODE option was NO.

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

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