[英]Why my Xcode failed to validate swift iOS project
I am trying to archive my app and submit it to iTunes store. 我正在尝试存档我的应用程序并将其提交到iTunes商店。 But I can't pass the validation.
但我无法通过验证。
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. 我尝试使用10.9上的Xcode 6.0和10.10 beta上的Xcode 6.1 beta来存档和验证它。 Both are not working.
两者都不起作用。
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. 更新:当我取消选中“为您的应用程序包含应用程序符号以接收来自Apple的符号化崩溃日志”选项时,我发现它可以通过验证。 Does swift framework not support this feature?
swift框架不支持此功能吗?
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. 我选择Build Phases。
I want to expand the Copy Bundle Resources. 我想扩展Copy Bundle Resources。
To remove unnecessary files and libraries of the plug-in if it has been registered. 删除插件的不必要文件和库(如果已注册)。
我遇到了类似的问题 - 假设它是XCode 6.0.1的配置文件/签名问题 - 但是,取消选中“包含应用程序符号”的注释为我解决了问题。
uncheck "Include app symbols for your application to receive symbolicated crash logs from Apple". 取消选中“包含应用程序的应用程序符号以接收来自Apple的符号化崩溃日志”。 Organizer -> Submit...
组织者 - >提交......
In my case I accidentally had a static library in "Build Settings" -> "Embed Framework". 在我的情况下,我不小心在“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不包含文件
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.
将其设置为NO。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.