3

I have created one application for iPhone. Application does a search for all watersports around the world. It is webservice based application.

My application runs smooth on Simulator without any crash report but when I create ipa file and launch same application on my iPod (I dont have my own iPhone) the application crashes after some time. Scenario of crash is not fixed so I assume this is because of Memory Leak or memory warning.

I used this function didReceiveMemoryWarning to identify memory warning but the function doesn't get called on simulator.

My Xcode version is 4.3 and unfortunately I updated the version of my iPod to iOS 6.0 so I can not test the app by connecting my iPod to the Mac. I am going to update my Mac and Xcode very soon but not soon enough to make this issue resolve/test.

Any ideas?

tkanzakic
  • 5,499
  • 16
  • 34
  • 41
SangamAngre
  • 809
  • 8
  • 25
  • App does not crash on simulator so I can not generate crash log. App crashes on device only and because I updated my device version I can not connect device to my xcode which is of older version 4.3. – SangamAngre Dec 11 '12 at 08:26
  • Check [how-to-find-crash-logs](http://www.ondemandworld.com/how-to-find-crash-logs/) or [get-crash-reports-logs-from-iphone-ipad](http://osxdaily.com/2012/08/07/get-crash-reports-logs-from-iphone-ipad/) – iDev Dec 11 '12 at 08:27
  • ohh. I did not know about this. Thank you very much. Now I can at least find out the cause of error. Thanks again. Checking the links now. – SangamAngre Dec 11 '12 at 08:30
  • Glad to know that it helped. Adding as an answer with some more details. Once you get the error message, you should be able to fix it. – iDev Dec 11 '12 at 08:35
  • yes ofcourse. Thanks again – SangamAngre Dec 11 '12 at 08:45

2 Answers2

1

Try this, put a temporary label then modify it when the didRecieveMemoryWarning is called or make an alert view that pops up when didRecieveMemoryWarning is called.

Also, run with Instruments app, its a great way to monitor your memory usage and identify memory leaks. Also try Product -> Analyze to find memory leaks from in-Xcode. Instruments is part of the SDK just search for it in spotlight.

MCKapur
  • 9,127
  • 9
  • 58
  • 101
  • I used all three ways you have mentioned. Instead of label I put uialertview in my didRecieveMemoryWarning, also Product -> Analyze and also instruments. But everything is fine. – SangamAngre Dec 11 '12 at 08:27
1

You can get the crash log from device using the following approaches. Check how-to-find-crash-logs or get-crash-reports-logs-from-iphone-ipad. You can symbolicate the crash log to find out the root cause. Check this question here for more details on that part Symbolicating iPhone App Crash Reports. Once you got the issue, you should be able to fix it.

Community
  • 1
  • 1
iDev
  • 23,310
  • 7
  • 60
  • 85
  • 1
    If you want, you can vote-up on multiple answers. There is an up arrow above the number 0 in both answers. If you press on that, that will do a vote-up on the answers. Only one answer can be marked with tick mark, but vote-up can be done on any answer you see in SO. – iDev Dec 14 '12 at 09:05