iOS 常见报错 Restore the connection to device and run

在真机上测试时用一会就出现如下信息,且应用挂掉。
Restore the connection to ““XXX”的 iPod” and run “XXX” again, or if “XXX” is still running, you can attach to it by selecting Debug > Attach to Process > XXX.
这是因为应用程序突然消耗了大量内存,然后再分配调度内存的时候,出现错误,致使系统将APP进程关闭。
可以去查看一下是不是加载了大量的图片等等,或者哪里有消耗内存的地方修改一下。


iOS 常见报错 Restore the connection to device and run_第1张图片
20161101092614459.png

你可能感兴趣的:(iOS 常见报错 Restore the connection to device and run)