ios – Xcode服务器僵尸程序测试 *** 作失败,因为“系统中打开的文件过多”.

ios – Xcode服务器僵尸程序测试 *** 作失败,因为“系统中打开的文件过多”.,第1张

概述我看到的错误如下: 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 en 我看到的错误如下:

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

在你的〜/ .profile或类似的.

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

总结

以上是内存溢出为你收集整理的ios – Xcode服务器僵尸程序测试 *** 作失败,因为“系统中打开的文件过多”.全部内容,希望文章能够帮你解决ios – Xcode服务器僵尸程序测试 *** 作失败,因为“系统中打开的文件过多”.所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/web/1055602.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存