iOS app hangs when tapped - ios

My app occasional hangs when opening/awakening from the background. I'll tap the icon and it takes about 10 secs to even open the loading screen. It's mainly with a slow internet connection, but I would think the loading screen would come up first.
The app isn't in the store yet, it's just on my phone through the simulator, would this cause any issues? It only happens after it's been sent to the background and then re-activated.
Any ideas, sorry to be a little vague?
I'm not getting any errors and I don't have any code in the AppDelegate file.

Try to run it in instrument. There must be memory leaks.
Xcode > Open Developer Tool > Instruments

Related

iOS: Instruments hangs for App launch template for simulator

When I try to use the App Launch profiling to understand the launch time activity using the simulator, it hangs.
It exactly hangs when I start recording, a screen saying
"Analsying.. Inhibiting Data Aquistion"
is shown. Nothing happens then. How to fix that?

IOS App suspended automatically

I have a problem in my release iOS app...
When i use my app and through all of feature (Like to another view in my app etc) in my app and then i click home button in ios to switch in to another app then i switch back to my app. My latest state (View) still exist. However, when i switch in to another app for a while, my app restarting from splash screen.
Another problem when i am trying to detect the problem in my ios simulator, the problem i have in the release app could not appear in my ios simulator.
Any people here could give me a solution to fix my problem ?
If the problem i have in memory usage, how many memory usage can be tolerated by IOS system ? and how can i know from ios simulator that memory usage is greater than the limit ?
additional info : my iOS app is based on objective-c and mixing with swift code. I use XCODE 8 and my app not using background service like download video, music, and etc. However, i use nsurlsession to fetch data from server and using data from server to load image from server. I use sdwebimage to handle image.
I hope this picture can give another insight about my app. This picture i take when my position in home of IOS, not in my app
It probably is memory usage. The job of the WatchDog process is to look for suspended memory hogs and kill them. You appear to be one.
You can readily see in Xcode how much memory you were using when you went into the background. How much was it? If it's a lot, don't do that. It's your job to release as much memory as you can when you go into the background, for this very reason.
However, your app can never hope to live forever — sooner or later, it will be killed in the background — so another responsibility you have is to save its state and, if you are launched from scratch, restore that state. That's just how iOS works.

iOS app crashes when the simulator window is moved

I’m working on a universal iOS application that runs fine on both the iPad Air and iPhone 5. Sometimes (1 out of ~5 times), when I move the simulator window, it crashes. I don’t get a usable error log nor a stack trace. It just seems the app get’s terminated and I do get a beach ball. I did add an "Exception Breakpoint” but it does not fire. The simulator itself does not crash. I can still use the shortcut for the home button and restart my application.
I do have 16GB of Ram. I don’t think it’s a memory problem.
Do I invoke something on my app when I move the simulator window? I can’t reproduce this behaviour, but it happened to me multiple times a day since I updated Xcode. Does anybody else have this problem? Is there a workaround?

App fails to launch and results in a black screen on device with home button unresponsive

Im having problems with Xcode timing out to installing the app on my device. The problems persists even if using different devices. Usually 4/5 tries will result in a black screen.
Xcode says successful and the app opens up on the device, but the screen is completely black and the device stops responding.. only a hard reset works.. the home button isn't responsive.
You can however hear that someone is calling you, but you cannot answer the call.
I have no idea of whats wrong, because it builds completely fine.. Any idea on what might be wrong here?
The error Im receiving is:
error: failed to launch '-- timed out waiting for app to launch
Update:
Someome mentioned to me that it might be a faulty cable, but I get the same black screen when downloading the uploaded app from hockey app.
Often this is the result of building the app in debug with an ad-hoc or release configuration. There was also a bug early in Xcode 5 where it would hang as well, I think this is fixed in the most recent update.

Cocos2d game doesnt launch on some devices

I're released an iPad game which is developed on the Cocos2d framework. Ive tested the game on a number of devices iPad 3, and iPad 2 and never had any issues.
Now i'm getting a few reports back that its not launching properly on some devices. People are saying they are seeing the default.png images then the app is closing.
Any ideas?
Without crash report this is just a guessing game.
By all means try to reproduce the problem on your side.
Possible problems:
1. If the app takes too long to launch it will be closed by iOS.
2. If it does not have enough memory it will not launch as well.
Try the following:
I. Open many other heavy apps in the background so there is not much memory.
See how it affects your app launch.
II. During launch try to use as many fast taps as possible and fast gestures.
There is possibility that very early taps are not serviced properly or at all
and that can cause the crash.
III. Test on many devices as you can - especially low end.
I found the issue, it was to do with the social framework running on older devices where it isn't available.

Resources