简体   繁体   中英

iPhone App Crash in iOS 5.1 in iPad 1 & nicely working in iPhone 4 & iPhone 5

I am developing social media application. it works fine with iPhone4 and iPhone5 . even it was working fine in iPad 1 also but last 2-3 days my application not works more then 1 min. my iPhone4 & iPhone5 having iOS 6 & iPad1 has iOS 5.1.

I have checked in instrumental. Its not consuming that much of memory. because my app crash in HomeViewController .

can any one have idea, what is the exact problem it is?

I think your app crashes because of a memory issue

To confirm that it's a memory issue, sync your device with iTunes,and look in ~/Library/Logs/CrashReporter/MobileDevice/ for a files with LowMemory in their name. If you see (jettisoned) next to your app name, that confirms it was killed by iOS for using too much memory.

The only other way an app could exit without leaving a crash report is if it erroneously called exit() .

For more information, see " Debugging Deployed iOS Apps ", and " Understanding and Analyzing iOS Application Crash Reports ".

EDIT

what does jettisoned means?

It means the process was terminated because iOS needed memory:

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

I would take a look at that technical note for some additional help. The documentation also points out the Instruments does not measure graphics memory use, and that requires special handling.

try this :

on Edit Scheme select the " Diagnostics " tab and click " Enable Zombie Objects ": Like..

在此处输入图片说明

Then go to product and profile on xcode menu. 在此处输入图片说明

it runs your application and you get exact information of crash

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM