App hanged only in iPhone 4 with iOS 7.1 - ios

I am creating an iPhone app with some user authentication screens. I have created these screens in Storyboard. For example, landing screens, sign in screens, Sign up Screens etc.. and made connections between them using model segue. Every things work fine.
The Problem is that the app hangs in my iPhone 4 with iOS 7.1. I have also tested it on 4s, 5 and 5s all with iOS 7.1. In all these devices App works fine and fast without hanging.
Can anyone suggest me why it hangs when i go from one screen to other screen like (Sign In, Sign Up, etc..) in iPhone 4.

Since you are using Google Maps SDK, you could check this issue.
I encountered the same problem, and in the end I ended up switching to Apple maps, since Gmaps has a tendency to leak memory, for what I witnessed at least...

iPhone 4 is a single-core device while all the other iOS7 ready devices are dual-core. Maybe it can't keep up with initializing your view and thats why it lags.
You should try Time Profiler from Instruments to catch what is too much for a single-core device.

I have this same error when I was trying to launch an UIAlertView in the start of application.
Try not to launch do anything in main thread before you have set your window key and visible in
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
...
[self.window makeKeyAndVisible];
}
I hope this helps

Related

App created in Xcode 9 crashes with screen record on in iPhone iOS11

I created a couple of apps and side loaded them on my iPhone.
I was playing around with my iPhone screen recorder and noticed the apps I side loaded, would close out.
Apps like LinkedIn, Twitter, shopping apps will stay on top.
Is there a setting in Xcode that prevents this?
I believe I found the answer. I had updated to iOS 11.0.1, thats when the crash started. Worked well with iOS 11. Just reloaded the app from Xcode and it works now. At this writing, the Apple Developer website is down for maintenance, so I am unable to load my other apps.

App freezes/behaves strangely when opening FROM App Store

We have an app on the App Store that is experiencing problems.
The app works fine through XCode, the app works fine when launched from the iPhone/iPad/iPod "dock" (the screens with all the apps, not sure what the official name is). However when trying to open the app straight from the App Store by pressing the "Open"-button, the app behaves strangely. The behaviour is also different on different devices.
We have 3 devices we can test on, an iPhone 7 Plus running iOS 10.3.1 (also tested on 10.2.1), an iPad Air 2 running 10.2.1 and an iPod Touch Gen 5 running 9.3.
iPhone behaviour: App opens then gets stuck at a black screen with an empty title bar.
iPad behaviour: App opens, skips the entire first tutorial view and continues to work as it should.
iPod behaviour: App works as it should.
The iPhone 7 Plus running 10.2.1 behaved exactly the same as when it's running 10.3.1.
I have tried finding more information about this problem but have so far been unable to. Have there been any other cases like this, and if so, is there a fix?
UPDATE: I HAD THE CHANCE TO TEST THIS ON AN IPAD RUNNING 9.X, THERE WERE NO PROBLEMS, SO THIS SEEMS TO BE A 10.X ISSUE
My problem ended up being the following. I pass the launchOptions from this function
-(BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
to another function and then check whether it is nil or not. However when it launched from the App Store it wasn't nil, specifically the following key:
[[launchOptions objectForKey:UIApplicationLaunchOptionsSourceApplicationKey] isEqual: #"com.apple.AppStore"]
It was trying to run code for when the launchOptions aren't nil, when in fact they were, except for that key.

iphone app on iphone 6 every now and then switches to background

I am in the process of testing one of my apps. It works fine on iphone 4s and 5. On iphone 6 however, my tester is reporting that every now and then the app goes to background and he need to relaunch. I would assume it is crashing but he is not able to replicate it (which means there is something really wrong).
Any idea how to go about figuring out what's going on there? All three phones are on ios 9.0.2 all code base is Swift 2.0.
You could add Crashlytics. I included a link below. It works really well. It will send you crash reports with a stack trace.
Crashlytics Link

ios applicationDidBecomeActive stuck on splash screen

I'm experiencing a phenomena that after a long time the app was in the background (and probably was ejected from the memory) - after running applicationDidBecomeActive (I see logs from it on the device log) it stays on the splash screen and stays there until I kill the app and restart it
Happens on an iPhone4 with iOS 7.1.2 (don't know about other devices, or if it happens on iOS8 as well)
Is there something I need to do in applicationDidBecomeActive to get the entry screen going?
P.S.
There is a facebook [FBAppEvents activateApp]; invoked - I don't know if it is relevant or not...
well..it is really depend on the app ,the device and how you are using you device.
test it. try to create a new view controller and present it.
if it is presented, i assume that all your view controller were release from memory .

App stays in splash screen in iOS 7.0.3

Recently in iOS 7.0.3, my app stays in the splash screen and was not going into the app at all.
If i kill the app and launch it again it opens up without any issues.
Can anyone help me on this issue?. I think the application -didFinishLaunchingWithOptions was not returning yes.
Note: I have a lot of stuffs like deleting database, initializing a dozen of buttons in appdelegate init function.
I know that it is a bad practice to have things in init but since its been there for more than 4 years and was working fine with previous OS versions i didn't find a good reason to change it.
Also this issue is not happening all the time.
My app size is 40 MB.
The iOS Guidelines say that you should not include anything which holds the Splash screen for much time its better if you do all the process in background so that splash screens loads up and user can play with app. But as you said your issue is not all the time so Try to reset the app and also quit simulator. Hope this helps.

Resources