Xcode分布式构建失败 [英] Xcode distributed build failure

查看:160
本文介绍了Xcode分布式构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Xcode进行分布式构建,但是从构建服务器进行构建时会看到此错误(Build Sever是主机,开发计算机是客户端).

I am trying to do distributed builds with Xcode, but I see this error while building from my build server (Build Sever is the host, dev machine is the client).

当我尝试以其他方式执行此操作时,我可以分发构建(将我的Dev机器作为主机,将Build Sever作为客户端)

When I try to do this the other way, I am able to distribute builds (My Dev machine as the host and the Build Sever as the client)

有什么想法吗?

[14:44:47]: Step 2/3 (6m:10s)
[14:44:57]: [Step 2/3] distcc[95606] (dcc_parse_multiplier) ERROR: bad multiplier "/0,lzo,cpp" in host specification
[14:44:57]: [Step 2/3] distcc[95606] (dcc_show_hosts) CRITICAL! Failed to get host list
[14:44:57]: [Step 2/3] /usr/bin/pump: error: pump mode requested, but distcc hosts list does not contain any hosts with ',cpp' option

推荐答案

此解决方案的运行里程可能会有所不同,但是我们不得不破解Xcode附带的distcc,以强制关闭泵模式来解决此问题.

Your milage may vary with this solution, but we've had to hack the distcc that comes with Xcode to force pump mode to be off to fix this problem.

  1. 从/Developer/usr/bin和/usr/bin中删除泵,只需在其位置写出一个名为pump的空文件
  2. 别忘了对泵和distcc进行chmod a + x升级(下一步)
  3. 在/Developer/usr/bin中,将distcc重命名为distcc.bin并写出该distcc

  1. Remove pump from /Developer/usr/bin and /usr/bin, just write out an empty file named pump in its place
  2. Don't forget to chmod a+x your pump and distcc (in the next step)
  3. In /Developer/usr/bin, rename distcc to distcc.bin and write out this distcc

#!/bin/bash
主机= $ DISTCC_HOSTS
hosts = $ {hosts//\,cpp/}
出口DISTCC_HOSTS = $ hosts
echo修改后的DISTCC_HOSTS = \"$ DISTCC_HOSTS \"
/Developer/usr/bin/distcc.bin $ @

#!/bin/bash
hosts=$DISTCC_HOSTS
hosts=${hosts//\,cpp/}
export DISTCC_HOSTS=$hosts
echo Modified DISTCC_HOSTS=\"$DISTCC_HOSTS\"
/Developer/usr/bin/distcc.bin $@

抱歉,这是一种快速而肮脏的解决方案.可能有一种更干净的方法可以做到这一点.

Apologies, this is a quick and dirty solution. There is probably a cleaner way to do this.

这篇关于Xcode分布式构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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