iPhone 应用程序在 iPad 1 的 iOS 5.1 中崩溃,但在 iPhone 4 和 iPhone 5 中运行良好

标签 iphone ios ipad crash

我正在开发社交媒体应用程序。它适用于 iPhone4iPhone5。即使它在 iPad 1 中也运行良好,但最近 2-3 天我的应用程序运行时间不超过 1 分钟。我的 iPhone4iPhone5 运行 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.

Documentation

我会查看该技术说明以获得一些额外的帮助。该文档还指出,仪器不会测量图形内存的使用情况,这需要特殊处理。

关于iPhone 应用程序在 iPad 1 的 iOS 5.1 中崩溃,但在 iPhone 4 和 iPhone 5 中运行良好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16415959/

相关文章:

iphone - UIButton Transition - 跨屏幕运行

ios - 如何使键盘在快速单击 TextField 时不弹出?

javascript - 移动网络应用程序中的滑动页面

iphone - iOS iPad 启动横向,推送 VC,popVC, View 定位错误

iOS webapp状态栏不一致

ios - CGContext删除路径

html - 具有输入焦点的 iPad 固定位置

ios - Swift 4 - 如何从当前 View Controller 设置和显示新的 Root View Controller

iphone - 如何在 iOS UIWebView 中显示带有 PDF 内容的 NSData?

iphone - 错误 '*** Collection <__NSCFDictionary: 0x563560> was mutated while being enumerated.'