我把工程运行到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应用.