iOS开发:运行多个模拟器之后出现Unable to boot device due to insufficient system resources提示

原文链接:https://blog.csdn.net/CC1991_/article/details/88399495
在iOS开发中,在运行代码之后可能会做多个屏幕尺寸的对比,来查看界面控件的布局和位置,但是如果同时打开多个Xcode里面的模拟器手机尺寸之后,就不能再打开手机模拟器了,原因是模拟器的内存超出最大的限额,苹果开发者官网也有相关的解释文档,要想解决这个问题,方法就是通过修改内存大小来启动更多的模拟器,最好的方法就是通过关闭/重启模拟设备和其他Mac应用程序释放资源。

一、错误问题提示:

Unable to boot device due to insufficient system resources.

Please see Simulator Help for information on adjusting system settings to allow more simulated devices to boot at once.

maxUserProcs: 709, runningUserProcs: 623, enforcedProcBuffer: 144

截屏2020-06-24下午4.44.05.png

二、引起错误的原因

运行多个模拟器之后,使得模拟器内存超出最大限额

最简单的解决办法就是关掉所有模拟器只显示当前使用的模拟器

你可能感兴趣的:(iOS开发:运行多个模拟器之后出现Unable to boot device due to insufficient system resources提示)