问题描述
我正在尝试使用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.
- 从/Developer/usr/bin和/usr/bin中删除泵,只需在其位置写出一个名为pump的空文件
- 别忘了对泵和distcc进行chmod a + x升级(下一步)
-
在/Developer/usr/bin中,将distcc重命名为distcc.bin并写出该distcc
- Remove pump from /Developer/usr/bin and /usr/bin, just write out an empty file named pump in its place
- Don't forget to chmod a+x your pump and distcc (in the next step)
In /Developer/usr/bin, rename distcc to distcc.bin and write out this distcc
抱歉,这是一种快速而肮脏的解决方案.可能有一种更干净的方法可以做到这一点.
Apologies, this is a quick and dirty solution. There is probably a cleaner way to do this.
这篇关于Xcode分布式构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!