Xcode 9 Server:由于系统资源不足,无法启动设备 [英] Xcode 9 Server: Unable to boot device due to insufficient system resources

查看:1394
本文介绍了Xcode 9 Server:由于系统资源不足,无法启动设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过在设置Xcode Bot时选中并行运行测试选项,同时在iOS 8.4到11.0的所有设备模拟器上运行我的单元测试。不幸的是,在尝试启动第13个模拟器后,它会在构建日志中出现错误消息:

I'm trying to run my unit tests on all device simulators from iOS 8.4 to 11.0 at the same time by checking the option 'Run test in parallel' when setting up the Xcode Bot. Unfortunately after trying to boot the 13th simulator it failes with the error message in the build log:

xcodebuild: error: Failed to build workspace xxxxx with scheme yyyyy.
Reason: Unable to boot device due to insufficient system resources.
Testing failed on 'iPhone 4s'

我在mac mini上运行服务器而且我认为由于完全记忆而无法同时运行这么多模拟器。

I'm running the server on a mac mini and i think it is just not capable to run so many simulators at the same time due to full memory.

任何人有使用它的经验吗?

Anyone experience with it?

推荐答案

在下次重启之前增加最大进程数:

Increase the maximum number of processes until the next restart:

sudo launchctl limit maxproc 2000 2500

在下次重启之前增加打开文件的最大数量: / p>

Increase the maximum number of open files until the next restart:

sudo launchctl limit maxfiles 2000 unlimited

对我而言,这是必须增加的最大进程数。您可能需要更大的数字,这些仅仅是示例。有关详细信息,请参阅文档。

For me it was the maximum number of processes that had to be increased. You might need even bigger numbers, those are just examples. Please refer to the documentation for more details.

来源: https://help.apple.com/simulator/mac/9.0/index.html#/dev8a5f2aa4e

这篇关于Xcode 9 Server:由于系统资源不足,无法启动设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆