2017-07-07 1261 views
0

我的应用在设备和模拟器上运行。应用程序存档没有错误。当我尝试导出我得到以下错误:存档导出错误:存档中不包含任何可以进行签名的内容

export error message

日志文件IDEDistribution.critical.log包含以下内容:

2017-07-07 07:40:03 +0000 [MT] Failed to generate distribution items with error: Error Domain=IDEDistributionErrorDomain Code=12 "The archive contains nothing that can be signed." UserInfo={NSLocalizedDescription=The archive contains nothing that can be signed., NSLocalizedRecoverySuggestion=Verify that your build process has compiled binaries and copied in bundled resources.} 2017-07-07 07:40:03 +0000 [MT] Presenting: Error Domain=IDEDistributionErrorDomain Code=12 "The archive contains nothing that can be signed." UserInfo={NSLocalizedDescription=The archive contains nothing that can be signed., NSLocalizedRecoverySuggestion=Verify that your build process has compiled binaries and copied in bundled resources.}

.xcarchive的内容: archive content

.app还包含所有常见的东西。

我相信这是更多所需的信息。请问,我会尽我所能。

+0

与https://stackoverflow.com/a/37614557/5152481相同的问题,但该答案对我无效。 –

+0

此答案也不能解决我的问题https://stackoverflow.com/a/33047767/5152481 –

+0

我可能很快就能解决问题。 Fastlane导出没有问题,而Xcode仍然不能。 –

回答

0

将存档目标目录更改为本地SSD(而非外部HDD)上的某个位置。

我这样做后,我还没有这个问题,我记得我开始尝试释放我的Mac上的空间后开始遇到问题。

0

您尝试存档哪个Xcode版本? 您可以在项目设置中检查“Build Phases”吗?所有资源,源文件链接正确。

+0

版本8.3.2。 '编译源码(225项)','链接二进制库(1项)',这是'libPods-MyApp.a','复制束资源(13项)','[CP] Embed Pods Frameworks' Pods框架shell脚本设置和'[CP] Copy Pods Resources'具有Pods资源shell脚本设置。 –

0

最后!可能还有其他问题,但只有在我更改了方案容器后才能导出。我知道这与CocoaPods有关。

pod install之前你方案可能是这个样子:

enter image description here

有没有其他容器的选择。

pod install后,它看起来就像这样:

enter image description here

一旦我选择了Workspace容器我开始看到在构建和差因此出口工作。

+0

它又破了。所以现在我知道问题是间歇性的。 –