为什么我的 Xcode 无法验证 swift iOS 项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25955104/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why my Xcode failed to validate swift iOS project
提问by morphinewan
I am trying to archive my app and submit it to iTunes store. But I can't pass the validation.
我正在尝试归档我的应用程序并将其提交到 iTunes 商店。但我无法通过验证。
Xcode always reported "Symbols tool failed."
Xcode 总是报告“符号工具失败。”
I tried to archive and validate it by using Xcode 6.0 on 10.9 and Xcode 6.1 beta on 10.10 beta. Both are not working.
我尝试通过在 10.9 上使用 Xcode 6.0 和在 10.10 beta 上使用 Xcode 6.1 beta 来存档和验证它。两者都不起作用。
I will be appreciated for any help.
我将不胜感激任何帮助。
And IDEDistribution.stardard.log reported error like below:
并且 IDEDistribution.stardard.log 报告如下错误:
2014-09-21 01:53:14 +0000 [MT] Validation failed for archive Europa with issues:
(
"<IDEDistributionIssue: severity(error), error(Error Domain=ITunesSoftwareServiceErrorDomain Code=-21013 \"The archive is invalid. /var/folders/dm/gps585zj4kvg0_9hlty6y8b00000gn/T/XCodeDistPipeline.FfM/Europa.ipa does not exist.\" UserInfo=0x7ff35a93a810 {NSLocalizedDescription=The archive is invalid. /var/folders/dm/gps585zj4kvg0_9hlty6y8b00000gn/T/XCodeDistPipeline.FfM/Europa.ipa does not exist., NSLocalizedFailureReason=Unable to validate your application.})>"
)
2014-09-21 01:53:14 +0000 [MT] Canceled distribution assistant
UPDATE: I find out that it can pass the validation when I uncheck "Include app symbols for your application to receive symbolicated crash logs from Apple" options. Does swift framework not support this feature?
更新:我发现当我取消选中“为您的应用程序包含应用程序符号以接收来自 Apple 的符号化崩溃日志”选项时,它可以通过验证。swift 框架不支持这个功能吗?
回答by onoche
I was able to resolve it by the following operations in Xcode.
我能够通过 Xcode 中的以下操作解决它。
I want to select a target on TARGETS.
我想在 TARGETS 上选择一个目标。
I select the Build Phases.
我选择构建阶段。
I want to expand the Copy Bundle Resources.
我想扩展复制捆绑资源。
To remove unnecessary files and libraries of the plug-in if it has been registered.
如果已注册插件,则删除不需要的文件和库。
回答by cwgso
I was having a similar problem - assumed it was a profile/sign issue with XCode 6.0.1 - however, your note to uncheck the 'Include app symbols' fixed the problem for me.
我遇到了类似的问题 - 假设这是 XCode 6.0.1 的配置文件/签名问题 - 但是,您取消选中“包含应用程序符号”的注释为我解决了这个问题。
回答by dazzli
uncheck "Include app symbols for your application to receive symbolicated crash logs from Apple". Organizer -> Submit...
取消选中“为您的应用程序包含应用程序符号以接收来自 Apple 的符号化崩溃日志”。组织者 -> 提交...
回答by Vitalii
In my case I accidentally had a static library in "Build Settings" -> "Embed Framework". Removing the static library from there helped. There is also a similar question: Client.ipa does not contain a file
就我而言,我不小心在“构建设置”->“嵌入框架”中有一个静态库。从那里删除静态库有帮助。还有一个类似的问题:Client.ipa does not contain a file
回答by David Wong
If the cleanup of "Copy Bundle Resources" didn't work for you, check if Link time Optimisation is switched on for your release build. Set it to NO.
如果“复制捆绑资源”的清理对您不起作用,请检查是否为您的发布版本打开了链接时间优化。将其设置为否。