无效的Swift支持 - 文件不匹配 [英] Invalid Swift Support - Files don’t match
问题描述
我刚刚在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.
I一段时间内与无效的快速支持错误搏斗(其他相关问题)...但现在它变成了一些不同的东西。
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 / Framees / libswiftCoreData.dylib,/ Payload / App.app / Framees / 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.
- 使用新的内部版本号归档您的应用:(
- 从管理器中查找Finder中的存档(.xcarchive文件)在Finder中显示
- 打开包并找到目录,如
Products / Applications / YourApp.ipa / Frameworks /
和SwiftSupport / iphoneos /
- 复制所有
libswiftXxx.dylib
来自<$ c的文件$ c> SwiftSupport / iphoneos / 进入产品/应用程序/ YourApp.ipa / Frameworks /
并覆盖 - 现在,从Organizer上传到App Store
- Archive your app with new build number :(
- Find the archive (.xcarchive file) in Finder from Organizer "Show in Finder"
- Open the package and find directories like
Products/Applications/YourApp.ipa/Frameworks/
andSwiftSupport/iphoneos/
- Copy all
libswiftXxx.dylib
files fromSwiftSupport/iphoneos/
intoProducts/Applications/YourApp.ipa/Frameworks/
and overwrite - 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屋!