简体   繁体   English

Xcode Bot集成错误:mmap失败

[英]Xcode Bot integration error : Failed to mmap

I am clueless as to how to fix this "Build Service error issues" when I try to integrate a Xcode bot on my OS X Server 4.0. 当我尝试在我的OS X Server 4.0上集成Xcode机器人时,我对如何解决这个“构建服务错误问题”毫无头绪。

Everything works fine on this server, I even have another working bot on another branch of the same project. 在这台服务器上一切正常,我甚至在同一个项目的另一个分支上有另一个工作机器人。

It throws me 它抛出了我

Bot Issue: error. 机器人问题:错误。 Build Service Error. 构建服务错误。 Issue: Failed to mmap. 问题:mmap失败。 Could not write data: Invalid argument (-1). 无法写入数据:无效的参数(-1)。

Got no idea what to do... 不知道该怎么办......

Thanks in advance! 提前致谢!

This is apparently due to a bug in Xcode 6.1.1 . 这显然是由于Xcode 6.1.1中的一个错误 In order to workaround, I reinstalled Xcode 6.1 . 为了解决方法,我重新安装了Xcode 6.1

I was not able to just select another version of Xcode in the Server app, I had to completely reset the Xcode service ( this will delete all your bots , you will have to recreate them): 我无法在Server应用程序中选择另一个版本的Xcode,我必须完全重置Xcode服务( 这将删除所有机器人 ,您将不得不重新创建它们):

sudo xcrun xcscontrol --reset

Before I could select Xcode 6.1 in the Server app I also had to run this command: 在我可以在Server应用程序中选择Xcode 6.1之前,我还必须运行以下命令:

sudo xcrun xcscontrol --initialize

If someone feels very adventurous and would like to understand the root cause of the problem on Xcode 6.1.1, here is where the error comes from. 如果有人觉得非常冒险并且想要了解Xcode 6.1.1上问题的根本原因,那么这就是错误的来源。 The libgit2 binary is at /Xcode-6.1.1.app/Contents/Developer/usr/lib/libgit2.dylib libgit2二进制文件位于/Xcode-6.1.1.app/Contents/Developer/usr/lib/libgit2.dylib

I had the same issue and I just updated the bot without making any changes to fix this. 我有同样的问题,我刚刚更新机器人而没有做任何修改来解决这个问题。 Just go to Report navigator in Xcode, select your bot, press "Edit bot..." and update it without making any changes. 只需转到Xcode中的报告导航器,选择您的机器人,按“编辑机器人......”并更新它而不做任何更改。

As of version 6.3 (possibly earlier), Xcode now offers a "Fix it" button that fixes the Git credentials, and got me up and running. 从版本6.3(可能更早)开始,Xcode现在提供了一个“修复它”按钮来修复Git凭据,让我开始运行。 The next build had warnings about the working copy state, but after a cleaning, the next build was fine. 下一个版本有关于工作副本状态的警告,但在清理之后,下一个构建很好。

I had a bit of a finneky solution to this issue. 我对这个问题有一点很好的解决方案。 Still not sure what causes the issue but this was sporadically failing for me. 仍然不确定是什么导致了这个问题,但这对我来说偶尔会失败。 What i did was i kept integrating with always clean set until i got a successful test, at that point i edited the bot to never clean. 我做的是我一直保持与整洁的集合,直到我成功的测试,在那一点我编辑机器人永远不会清理。 Now it's successfully running tests every time. 现在它每次都成功运行测试。 I'm not saying this is the correct solution and I know it isn't a nice solution but having tried resetting osx server and updating my ssh keys etc its the only way i could get around it. 我不是说这是正确的解决方案,我知道这不是一个很好的解决方案,但尝试重置osx服务器并更新我的ssh密钥等,这是我能绕过它的唯一方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM