Xcode 服务器机器人测试操作失败,因为"Too many open files in system."



我看到的错误如下:

Test target PrototypeTests encountered an error (The operation couldn’t be completed. Too many open files in system. Too many open files in system)
Test target Prototype Integration Tests encountered an error (The operation couldn’t be completed. Too many open files in system. Too many open files in system)

我能够毫无问题地运行分析和归档操作,但启用测试操作会导致上述错误。我甚至在空测试中尝试过,但问题仍然存在。

我的服务器上sudo launchctl limit maxfiles的输出是:

maxfiles    256            unlimited      

如果我能提供更多信息,请告诉我。

您需要增加您的ulimit。您应该添加以下行:

ulimit-n 4096

在您的~/.个人资料或类似信息中。

您必须将这一行添加到bash启动文件中的原因是,仅仅运行sudo ulimit-n 4096只会更改当前bash会话中的限制。

我在尝试编译时收到了同样的消息,同时内存不足,磁盘空间不足,并且有许多打开的应用程序&我桌面上的文件。关闭其中大部分并清空垃圾箱解决了这个问题。

最新更新