How to optimize memory while running app on iPhone simulator? - iphone

I am new iPhone development and my app goes crashed when doing navigation of pages for multiple times in simulator.
In Debug Session when it reaches 50MB, my app goes crashed.
What could be the possible solutions to stop crashing ?

Related

App not running in background in IOS 7.0.2

I have developed an iPhone app using VOIP, which always runs in background. If my app running on iPhone 3GS(IOS6) crashes, it will restart itself in few seconds. But this is not the case on iPhone 4S(IOS7.0.2) i.e app is not restarting itself when it crashes.
What may be the reason behind it?

What does CONNECTION INTERRUPTED mean?

I've developed an app which runs perfectly on iPhone 4, 4s and iPhone 5. I started getting some reports on crashes on iPod Touch 4G so today I started looking into the problem.
At one of the most memory-demanding viewcontrollers i started noticing "low memory warning" and soon after that it would crash. Thats fine, that made me investigate what causes this.
However now when i reach that particular viewcontroller I just get "CONNECTION INTERRUPTED" in the console and it crashes. Every single time. I tried restarting Xcode and the iPod Touch 4G but it still keeps coming.
What does it mean? And why didnt I experience this from the start when testing on my iPod Touch 4G?

App Rejection by Apple due to use of watchdog timer for applications in unity3d iOs Game?

I got a rejection from apple due to the following issue.
2.2: Apps that exhibit bugs will be rejected
We found that your app failed to launch on iPhone 4 and iPad 2 running iOS 5,on both Wi-Fi and cellular networks.
We encountered the issue when selecting the application on the Home screen - the app displayed a launch image then quit unexpectedly. This may be because iOS 4 uses a watchdog timer for applications; if an application takes too long to complete its initial startup, the operating system terminates the application.
Right now I am confuse. What should I do. Please suggest me the right way.
Hello friends I got the solution. And I had successfully submitted the game on the appstore.
Here I am using a Preloading code for Decrease the Initial Loading time. And I had just put a Blank scene for indicating the application is running. In earlier time it was taken 36 seconds for that. but right now it is 11 seconds for whole levels.
Thanks

iPhone 3G + iOS4 debug problems

I recently updated our test iPhone 3G with the latest version of iOS 4 to be able to test our apps on the new OS. I regret that I didn't read the forums because after the update the device's performance suffered a lot. However this is not a problem because the device still works. The problem is that when I try to debug our app the device freezes for minute and reboots or closes the app and returns to the home screen. When it manages to stop at breakpoint it takes few seconds to step over or out and often there's no debug information about the variables. I assume that this is due to some memory issues because the new OS requires more memory space. I must point out that our app worked fine with the iPhoneOS 3.1.3 and the Xcode 3.2.2 with the 3.2 SDK. It is a Universal app and that runs fine on the iPad too.
I have seen this problem as well when one of my applications was consuming a lot of memory. The background application that handles the remote debugging consumes quite a bit of ram (~15M the last time I had this problem). If your app is fine in standalone mode and crashing under debug then you might be close to the limit running in standalone (as I was).
I noticed that making sure that all other applications were quited or if I rebooted the iPhone that I was able to debug my executable (this was until I found the copied object problem that was causing the memory bloat).
If you have a jailbroken iPhone then you will have other services running consuming memory as well.
the iPad has double the ram 256M than the 3G at 128M.
I have also seen a problem when opening an application with a url encoded with data that runs > 500K that it will crash springboard before your debug session is started with a delayed launch.

Does anyone experiencing freezing during iPhone app launching or closing?

App freezes, and the device freezes sometime during launching or closing. This happens especially to the app developed and installed using Xcode. Can anyone explain what's going on, if it's iOS 4 Gold Beta specific issue, or a generic task must be handled by a developer?
Use the Debugger, Console and NSLog() statements to track the progress of your application throughout its life. This will help you track the bug in your application.