我看到的错误如下:
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
如果我能提供更多信息,请告诉我。
答案 0 :(得分:2)
你需要增加你的ulimit。您应该添加以下行:
你的〜/ .profile或类似的ulimit -n 4096
。
您必须将此行添加到bash启动文件的原因是因为只运行sudo ulimit -n 4096只会更改当前bash会话的限制。
答案 1 :(得分:0)
在尝试编译低RAM,低磁盘空间和许多打开的应用程序时,我收到了同样的消息。我桌面上的文件。关闭其中大部分并清空垃圾解决了这个问题。