小胖说事31------iOS 真机编译错误"“XXX”的 iPod" and run "XXX" again, or if "XXX" is still running

在真机上測试时用一会就出现例如以下信息,且应用挂掉。


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进程关闭。

能够去查看一下是不是载入了大量的图片等等,或者哪里有消耗内存的地方改动一下。

原文地址:https://www.cnblogs.com/llguanli/p/6918350.html