Xcode 分布式构建失败
我正在尝试使用 Xcode 进行分布式构建,但在从构建服务器构建时看到此错误(构建服务器是主机,开发机器是客户端)。
当我尝试以其他方式执行此操作时,我能够分发构建(我的开发计算机作为主机,构建服务器作为客户端)
有什么想法吗?
[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
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).
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)
Any thoughts?
[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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的情况可能会因该解决方案而异,但我们必须破解 Xcode 附带的 distcc,强制关闭泵模式才能解决此问题。
In / Developer/usr/bin,将distcc重命名为distcc.bin,并写出这个distcc
<块引用>
#!/bin/bash
主机=$DISTCC_HOSTS
主机=${主机//\,cpp/}
导出 DISTCC_HOSTS=$主机
echo 修改后的 DISTCC_HOSTS=\"$DISTCC_HOSTS\"
/Developer/usr/bin/distcc.bin $@
抱歉,这是一个快速但肮脏的解决方案。可能有一种更干净的方法可以做到这一点。
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.
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 4
Please restart the build server and your own computer. That usually does the trick for me, also, update to the latest xcode 4