简体   繁体   English

为什么我的Xcode无法验证swift iOS项目

[英]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.

相关问题 为什么我的“包含 SwiftyDropbox”会导致我的 iOS Xcode Swift 项目出现构建错误? - Why does my "include SwiftyDropbox" cause a build error for my iOS Xcode Swift project? 为什么应用归档在 iOS、swift、xcode 9.2 中使用自定义框架失败 - Why app archive failed with custom frameworks in iOS, swift, xcode 9.2 如何在我的IOS(Swift)项目Xcode 9中导入Java库并使用它 - How to Import Java Library and use It In my IOS(Swift) Project, Xcode 9 Xcode 8 iOS Simulator不提示我的Swift 3项目中的位置服务授权 - Xcode 8 iOS Simulator is not prompting for location services authorization in my Swift 3 project 为什么我的Swift代码在操场上可以工作,而在Xcode项目中却不能工作? - Why does my Swift code work in the playground but not in the Xcode project? 适用于不同iOS版本的Xcode项目,很快 - Xcode project for different iOS versions, swift 为什么我的 Swift Xcode 项目的表格视图中的列分隔符没有对齐? - Why don't my column separators line up in my table view in my Swift Xcode project? 无法运行新的iOS Xcode项目 - Failed to run new ios xcode project 为什么我的XCode项目包含我的iOS应用程序的错误图标文件? - Why does my XCode project include the wrong icon file for my iOS Application? 将项目参考添加到Swift iOS XCode项目并进行调试 - Add project reference to Swift iOS XCode project and debug
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM