gpt4 book ai didi

ios - Xcode 9 服务器 : Unable to boot device due to insufficient system resources

转载 作者:IT王子 更新时间:2023-10-29 08:11:42 25 4
gpt4 key购买 nike

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

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 上运行服务器,我认为由于内存已满,它无法同时运行这么多模拟器。

有人用过吗?

最佳答案

增加最大进程数直到下次重启:

sudo launchctl limit maxproc 2000 2500

增加打开文件的最大数量直到下次重启:

sudo launchctl limit maxfiles 2000 unlimited

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

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

关于ios - Xcode 9 服务器 : Unable to boot device due to insufficient system resources,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46360878/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com