ios开发app - iOS Ipad老是提示内存过高

查看:86
本文介绍了ios开发app - iOS Ipad老是提示内存过高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

我把工程运行到iPad mini上面 内存也就最高是50m-60m 老是提示内存警告 并且经常Xcode显示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。然后crash。

根据提示,crash很有可能就是内存太高导致的,但是50m内存不算高啊。但是运行到7plus上面没有一点问题。 请问大神有什么好的办法吗

下面是不同设备 内存太高导致crash的界限
iPad1: 127MB/256MB/49% (crash amount/total amount/percentage of total)
iPad2: 275MB/512MB/53%
iPad3: 645MB/1024MB/62%
iPad4: 585MB/1024MB/57% (iOS 8.1)
iPad Mini 1st Generation: 297MB/512MB/58%
iPad Mini retina: 696MB/1024MB/68% (iOS 7.1)
iPad Air: 697MB/1024MB/68%
iPad Air 2: 1195MB/2048MB/58% (iOS 8.x)
iPod touch 4th gen: 130MB/256MB/51% (iOS 6.1.1)
iPod touch 5th gen: 286MB/512MB/56% (iOS 7.0)
iPhone4: 325MB/512MB/63%
iPhone4S: 286MB/512MB/56%
iPhone5: 645MB/1024MB/62%
iPhone5S: 646MB/1024MB/63%
iPhone6: 645MB/1024MB/62% (iOS 8.x)
iPhone6+: 645MB/1024MB/62% (iOS 8.x)
iPhone6s: 1195MB/2048MB/58% (theoretical, untested)
iPhone6s+: 1195MB/2048MB/58% (theoretical, untested)

解决方案

不一定是内存泄漏, 也有可能是死循环, 系统强行kill应用.

这篇关于ios开发app - iOS Ipad老是提示内存过高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆