my app is working fine on simulator but when i am running on device its getting crash and showing these reports
- Aug 11 15:02:04 unknown MobileMail[20218] : Received memory warning.
- Aug 11 15:02:04 unknown UserEventAgent[12] : jetsam: kernel termination snapshot being created
- Aug 11 15:02:04 unknown com.apple.launchd[1] : (UIKitApplication:com.apple.mobilephone[0xc8a9]) Exited: Killed: 9
- Aug 11 15:02:04 unknown com.apple.launchd[1] : (UIKitApplication:com.apple.mobilemail[0x828b]) Exited: Killed: 9
- Aug 11 15:02:04 unknown com.apple.launchd[1] : (UIKitApplication:com.christopher.pacificamodeling[0x8500]) Exited: Killed: 9
- Aug 11 15:02:04 unknown com.apple.launchd[1] : (UIKitApplication:com.skype.skype[0xd976]) Exited: Killed: 9
- Aug 11 15:02:05 unknown SpringBoard[16688] : Application ‘Mail’ exited abnormally with signal 9: Killed: 9
- Aug 11 15:02:05 unknown SpringBoard[16688] : Application ‘PacifiCA’ exited abnormally with signal 9: Killed: 9
- Aug 11 15:02:06 unknown SpringBoard[16688] : Application ‘Skype’ exited abnormally with signal 9: Killed: 9
- Aug 11 15:02:06 unknown SpringBoard[16688] : Application ‘Phone’ exited abnormally with signal 9: Killed: 9
- Aug 11 15:02:06 unknown DTPower[15342] : Task info failed for task com.christopher.pacificamodeling
- Aug 11 15:02:06 unknown kernel[0] : launchd[20223] Builtin profile: MobileMail (sandbox)
- Aug 11 15:02:06 unknown kernel[0] : launchd[20224] Builtin profile: container (sandbox)
- Aug 11 15:02:06 unknown kernel[0] : launchd[20224] Container: /private/var/mobile/Applications/6BBDF6EB-1DB0-4CAB-8300-DC6CBA78C1AB [69] (sandbox)
First thing is to run the profiler from xcode menu as shown below:
then use the one highlighted below:
Finally you will see the blocks that is allocated the most expand any of them to see who is allocating it frequently. Go to that part and optimize it to avoid allocate/deallocate every time.