Xcode Server Bot问题:警告。构建服务错误。问题:归档在路径'some / path'是格式错误 [英] Xcode Server Bot Issue: warning. Build Service Error. Issue: archive at path 'some/path' is malformed

查看:2348
本文介绍了Xcode Server Bot问题:警告。构建服务错误。问题:归档在路径'some / path'是格式错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Cocoapods和KIF在Xcode服务器上运行连续集成。我已成功设置为一个项目报告每个提交。我现在正在使用第二个项目,并得到的错误:

I'm using Cocoapods and KIF to run Continuous Integration on an Xcode server. I have successfully set this up for one project to report on each commit. I'm now using a second project and get the error:

Bot Issue: warning. Build Service Error.
Issue: archive at path '/Library/Developer/XcodeServer/Integrations/Integration-81d42936b22a04037fd4aebed1074e5e/Archive.xcarchive' is malformed.
Integration Number: 1.
Description: archive at path '/Library/Developer/XcodeServer/Integrations/Integration-81d42936b22a04037fd4aebed1074e5e/Archive.xcarchive' is malformed.

当使用Xcode在Xcode服务器上运行时,测试通过。我试图下载Provisioning Profiles等通过Xcode但这没有帮助。我删除了Bot,并创建了一个新的,但也没有帮助。

The tests passed when ran on the Xcode server machine using Xcode. I tried downloading Provisioning Profiles etc via Xcode but that didn't help. I deleted the Bot and created a new one but that also did't help.

欢迎任何帮助

推荐答案

至少在我的情况下(可能有多个原因),这是由于在每个目标设置跳过安装,这导致你最终得到一个空档案但只在Xcode Server上)。

At least in my case (and there may be multiple causes), this was caused by having "Skip Install" set on every target, which causes you to end up with an empty archive (but only on Xcode Server).

基本上,xcodebuild(命令行工具)在处理归档方面与Xcode有很多关键的区别。它构建未在方案中列出的目标,并且遵守跳过归档标志,即使对于方案中列出的目标。相比之下,在本地构建时,Xcode忽略跳过归档标志,并归档方案中的任何目标(并且只存储方案中列出的目标)。

Basically, xcodebuild (the command-line tool) has lots of critical differences from Xcode in the way it handles archiving. It builds targets that aren't listed in the scheme, and it obeys the Skip Archive flag even for targets listed in the scheme. By contrast, when building locally, Xcode ignores the Skip Archive flag and archives any targets in the scheme (and only the targets listed in the scheme).

在每次遇到项目在本地构建但在服务器上失败的情况时提交错误。如果每个人都这样做,也许这些差异最终会固定....

I would encourage you to file a bug every time you run into situations where a project builds locally but fails on the server. If everyone did this, perhaps these differences would eventually get fixed....

这篇关于Xcode Server Bot问题:警告。构建服务错误。问题:归档在路径'some / path'是格式错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆