我正在开发社交媒体应用程序。它适用于 iPhone4
和 iPhone5
。即使它在 iPad 1
中也运行良好,但最近 2-3 天我的应用程序运行时间不超过 1 分钟。我的 iPhone4
和 iPhone5
运行 iOS 6,iPad1
运行 iOS 5.1。
我已 checkin 乐器。它不会消耗那么多内存。因为我的应用程序在 HomeViewController
中崩溃。
任何人都可以知道它到底是什么问题吗?
最佳答案
我认为您的应用因内存问题而崩溃
要确认这是内存问题,请将您的设备与 iTunes 同步,然后在 ~/Library/Logs/CrashReporter/MobileDevice/
中查找具有 LowMemory
的文件他们的名字。如果您在应用程序名称旁边看到 (jettisoned)
,则确认该应用程序因使用过多内存而被 iOS 终止。
应用程序退出而不留下崩溃报告的唯一其他方法是 erroneously called exit()
.
有关详细信息,请参阅“Debugging Deployed iOS Apps ”和“Understanding and Analyzing iOS Application Crash Reports ”。
编辑
抛弃是什么意思?
这意味着进程被终止,因为 iOS 需要内存:
Memory usage of each process is reported in terms of number of memory pages, which as of this writing are 4KB each. You will see "(jettisoned)" next to the name of any process terminated by iOS to free up memory. If you see it next to your application's name, that confirms the application was terminated for using too much memory.
我会查看该技术说明以获得一些额外的帮助。该文档还指出,仪器不会测量图形内存的使用情况,这需要特殊处理。
关于iPhone 应用程序在 iPad 1 的 iOS 5.1 中崩溃,但在 iPhone 4 和 iPhone 5 中运行良好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16415959/