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?
Related
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 ?
I would like you to help me here.
I'm developing an app that works in the background. It's a location-based app and I think I'm going crazy because when I'm debugging the app in the device it works perfectly, I make it sleep I wake it up and I works as expected. Then I unplug the device from the computer and I put in my pocket and whenever I open it, it sometimes works and other it doesn't, I'm talking about several hours in the background.
Are there any known issues about this? My device is running iOS 5.0 and I'm developing for iOS 4.0
Thanks
Applications in the background are handled by iOS. Therefore if iOS "thinks" that it needs memory it maybe frees some of the memory your app needs to run.
Have you tried to look into it with Instruments?
I am working on a universal application where I am stuck at one point. I was able to successfully launch my application both on iPhone and iPad but since 2-3 days, I am not able to launch my application on neither iPhone nor iPhone simulator but it runs smoothly on iPad/iPad simulator.
Also when I run my app choosing iPhone device it shows message like Running the App on iPhone simulator but I am not able to see any effect on my simulator. I am using Xcode 4.2.1 and I guess the issue is pertains to the same.
I don't know whether it is a solution or not but got a way out by reinstalling the iOS Simulator.
I have faced same problem. This probably happens when you replace the application with the newScheme/EditScheme by mistake.
Just carefully check when you run your application is there your application name appear. This will be immediate left at where you choose iPhone simulator or iPad simulator version.
am new to the ios application development.
I had developed an application on iOS platform using 4.3 SDK.
When it runs on simulator or a device, if we are trying to press on the application icon again after quit the application at run time, the application is again starts its execution from the begining, not from the previous stage it has stopped.
By going throgh the documentation i came to know the multitasking facility is inbuilt for an iOS application.
Or we need to do any coding for implementing this multitasking facility.? Experts please help.
Thanks in advance.
Basically you should be able to go background and then foreground when using the simulator. remember that when running on simulator the GDB debugger is attached to the process thus you cannot terminate the app and start again but you can go background and start again. I think there is a good chance you are crashing and that's why the app starts again. Try to implement the app delegate methods "didResignActive" and "didBecomeActive" and make sure you manage the saving of the state correctly there...
I'm developing iphone application with localization in Russian and English languages.
For localization I use Localazible.strings file, and also have a copy of Russian and English set of images.
The problem is: when I switch language and application is running in background, and then I'm trying to run application, it crashes, iphone reboots, and starts rebooting over and over. Only switching off and then switching on helps. After doing it I can run application in any language.
When application crashes debugger says only "program received signal 0".
How can I get reasons of such device behavior? These problem occurs on iphone 3gs with iOS 4.1 (jailbreak), iPad with iOS 4.2.1, iPhone 4 iOS 4.3.3 and DON'T occurs on iPhone 4 iOS 4.2.1.
When you change the language while debugging an app through Xcode, the app is killed by the system (during the reboot) and the debugger interprets that as a sigkill, which is what it is telling you - "program received signal 0".
Because the debugger has seen your app killed, it needs to be stopped from within Xcode before you can run it again, other wise you get what looks like a crash on launch and other such errors like "broken pipe" or "unable to start debugger, maybe it is hung in another process".
You won't be able to test a normal "resume from background" when changing language because changing the language restarts springboard and therefore your app is killed.
If you maintain UI state manually (as used to be required before multitasking) then you can restore it on the next launch of your app and maintain an illusion of multitasking.