Unable to boot device due to insufficient system resources,模拟器起的太多,导致资源不够。解决方案关闭其它模拟器,只使用一个模拟器。
在iOS开发中,在运行代码之后可能会做多个屏幕尺寸的对比,来查看界面控件的布局和位置,但是如果同时打开多个Xcode里面的模拟器手机尺寸之后,就不能再打开手机模拟器了,原因是模拟器的内存超出最大的限额,苹果开发者官网也有相关的解释文档,要想解决这个问题,方法就是通过修改内存大小来启动更多的模拟器,最好的方法就是通过关闭/重启模拟设备和其他Mac应用程序释放资源。
一、错误问题提示:

二、引起错误的原因

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

三、解决方法

方法一、引起该问题是模拟器的内存超出最大限额,可以通过修改内存大小来启动更多的模拟器

终端命令步骤:

1、首先查看当前权限:launchctl limit

2、修改多文件的限制,也就是修改maxfiles项,使用命令:sudo launchctl limit maxfiles 1024 unlimited //1024是maxfiles项数,根据实际情况来设置
方法二、参考苹果开发者官网的文档说明。
原文如下:

Insufficient resources error when trying to launch a simulator尝试启动模拟器时出现资源不足错误

Launching a simulator can result in an error alert that there are insufficient system resources. This usually occurs when launching a simulator exceeds either the maximum number of active processes or the maximum number of open files. The best solution is to free up resources by closing simulated devices and other Mac applications.启动模拟器会导致系统资源不足的错误警报。当启动模拟器超过活动进程的最大数量或打开文件的最大数量时,通常会发生这种情况。最好的解决方案是通过关闭模拟设备和其他Mac应用程序释放资源
If it is not possible to free up enough resources, you can raise the system limits until the Mac is restarted.如果无法释放足够的资源,可以提高系统限制,直到Mac重新启动。

Note: It is possible to exceed the maximum number of process or the maximum number of open files by launching other programs or opening other files some time after you have launched a simulator. If this occurs, Simulator does not give you a warning. The effects depend on what program is trying to launch the process or open the file.在启动模拟器后的某个时间,通过启动其他程序或打开其他文件,可能会超过最大进程数或最大打开文件数。如果发生这种情况,模拟器不会向您发出警告。效果取决于哪个程序试图启动进程或打开文件。
方法三:关闭其它模拟器。

Unable to boot device due to insufficient system resources相关推荐

  1. Unable to boot device because it cannot be located on disk. Domain: NSPOSIXErrorDomain

    由于磁盘空间满了.删掉了~/Library/Developer/CoreSimulator/Devices中两个容量比较大的模拟器设备 由于不小心修改到了Xcode系统文件,有个文件内容全部清空了,运 ...

  2. Exchange报错:452 4.3.1 Insufficient system resources

    在Exchange2010上发送邮件或者telnet其25端口都报452 4.3.1 Insufficient system resources(系统资源不足)错误,经资料查询,原来是Exchange ...

  3. No boot device avalible,Press any key to reboot the system

    报错信息 : No boot device avalible,Press any key to reboot the system 没有可用的引导设备,请按任意键重新引导系统 报错原因 : BIOS设 ...

  4. Spring Boot: Unable to start EmbeddedWebApplicationContext due to missing Embedd

    spring boot启动时报错: Spring Boot: Unable to start EmbeddedWebApplicationContext due to missing Embedded ...

  5. Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean 解决方案

    SpringBoot启动时的异常信息 "C:\Program Files\Java\jdk1.8.0_161\bin\java" ......... com.fangxing.ja ...

  6. 【Spring】Unable to start ServletWebServerApplicationContext due to miss ServletWebServerFactory bean

    1.概述 我一个sparing boot项目,本地运行的时候报错. Unable to start ServletWebServerApplicationContext due to miss Ser ...

  7. 开机显示Reboot and select proper boot device or insert boot media in selected

    原文:UEFI和Legacy及UEFI+Legacy启动的区别:https://www.cnblogs.com/net5x/p/6850801.html UEFI和legacy是两种不同的引导方式, ...

  8. 电脑启动不起来,英文提示Reboot and select proper boot device or Insert Boot Media in selected Boot

    转自:http://caohongjiang.blog.51cto.com/1539096/667068 当我们启动电脑的时候,遇到启动不起来,切不管你按什么键都不管用了,都是相同的提示语,如下: R ...

  9. Provisioning Services 7.8 入门系列教程之十三 使用 Boot Device Management(BDM)

    续Provisioning Services 7.8 入门系列教程之十二 实现高可用性 可以使用 Boot Device Management 实用程序将 IP 和引导信息(引导设备)交付给目标设备, ...

  10. Error:No suitable device found: no device found for connection “System eth1″

    centos 6.8 背景:在vcenter上克隆完毕一台虚拟机 要在新克隆的虚拟机上配置静态ip 配置静态ip完毕,运行service network restart 报错 Error:No sui ...

最新文章

  1. 《智能网联汽车技术路线图 2.0》重磅发布
  2. 我的思维模式的阿喀琉斯之踵
  3. 快速打开计算机磁盘的软件,提升电脑运行效率, 你需要快速整理磁盘碎片的工具...
  4. project日历设置-大小周交替
  5. Android 系统(119)---Android启动页黑屏及最优解决方案
  6. IE8中伪元素动态作用样式不重绘bug记录
  7. linux traceroute命令详解_详解Linux系统路由跟踪指令traceroute语法、工作原理和实例说明...
  8. mysql sql语句 datediff_SQL语句中DateDiff函数说明
  9. VB6中SendKeys的基本应用
  10. mysql创建多个联合索引吗_高性能索引油画策略(二):多个索引是独立建立索引还是建联合索引?...
  11. teechart的addarray_【TeeChart Pro ActiveX教程】(六):使用系列(下)
  12. Maven下载及安装教程
  13. qqkey获取原理_qqkey获取器下载
  14. Web端编写(四)——查看会议议程
  15. Windows记录ping时间戳
  16. Oauth2学习笔记
  17. php获取证书编号没有serialNumberHex只有serialNumber处理方法
  18. 【电子设计大赛】2021 年全国大学生电子设计竞赛仪器设备和主要元器件及器材清单
  19. MQTT断线重连订阅无法接收
  20. python图形界面设计代码_(八)Python 图形化界面设计

热门文章

  1. Java转换坐标系,GPS(WGS84)、百度(BD-09)、高德(GCJ-02)互转,一文搞懂坐标系、坐标转换
  2. 关于大学生睡眠时间的调查
  3. 一个疫情期间的实习生经历
  4. react异常 Each child in a list should have a unique “key” prop
  5. 《 PHP+H5全栈工程师培训项目实战》
  6. 向jupyter notebook插入图片并控制大小和对齐方式
  7. 2的指数字节转与MB、GB换算关系
  8. 解决Maven项目pom.xml文件报xxx\target\classes\META-INF\MANIFEST.MF (系统找不到指定的路径。)问题
  9. 面试向:如何设计一个有容错性的微服务架构?
  10. git官网下载比较慢的解决方法