iPhone app crashes after splashscreen - objective-c

My iPhone App works fine on iOS 5, but crashes after Splashscreen on iOS4. (using PhoneGap) (using HockeyApp.net).
I am new for ios development.
I have developed an ios app with deployment target 4.0.
It is perfectly installed and working on iPad 2 (os-5.1) and iPod touch ([4g] os-5.0.1).
It is installing on iPhone 4 (os-4.2.6) and iPod touch ([2g] os-4.2.1) but not working. It shows the splashscreen, but crashes after that.
I have addded my own log function in code and found that it is crashed before going inside didFinishLaunchingWithOptions function.
I am using HockeyApp.net to download the ipa file.
I am not getting what is the problem exactly, the following is my AppDelegate.m file.
AppDelegate.m : https://gist.github.com/4343470
The crash report:
Crash Report: https://gist.github.com/4343472
Please help me out this.
Thank you in advance.

The crash is because CDVCordovaView is a subclass of UIWebView, and UIWebView's scrollView property is only defined starting in iOS 5. Somewhere in your code you are trying to access the scrollView property, which causes the crash. Check if the CDVCordovaView object respondsToSelector:#selector(scrollView) before you access scrollView, to prevent the crash.

Related

ios app lags and freezing iphone 6s/7/8 in iOS 13

We have an iOS native app developed with Objective C and using auto-layout with Storyboard for UIs.
It is working fine in iOS 12.4.1 in all devices and it is not
working now in the iOS 13 on iPhone 6s/7/8 only.
Only this screen size has the issue.
Other than that all other iphone screens are supporting upto to
iPhone 11 Pro Max.
And this issue is not there in the iPhone 6s/7/8 simulators. Only in
the real device.
When it is installed on iPhone 7 and run the app it lags very much
and freeze the app occasionally, I have to close it, But the iphone is also gets laggy.
I am not getting any errors.
I thought this is layout issue, so I've Removed constraints of all first showing screens and re-added the constraints. And tried to debug with XCode Instruments to test performance but that didnt show me any issue also(I am not much familiar with using XCode Instruments).
I am stuck with this issue for several days.
And I couldnt find anyone having the same issue.
I appreciate any help regarding this.
What could cause this?
I was facing a similar issue and found out that SearchDisplayController which is deprecated, was being used in the code and storyboard as well. That was causing my app to crash on real device, but not on simulator with iOS 13.1.2. After removing the SearchDisplayController, things worked fine for me.

Xcode 6.1 - Map View appears blank in iOS7 simulator or iPhone 4

Since I last updated to Xcode 6.1 and Yosemite, the map views in my app started to appear blank either in ios7.1 simulator or my iPhone4 (iOS7.1).
I could replicate the situation by creating a brand new single view application with just a MKMapView and although it appears correctly in iOS8 simulators, in the iOS7.1 simulators or my iPhone4 it shows only a blank screen. The iOS Deployment Target is set to iOS 7.1.
I tested this simple app in a friend's Mac with Mavericks but the same situation occurs.
Is this some bug of Xcode 6.1 or SDK, or do I have to add something to run maps on iOS7?
I faced the same problem. To fix it, you have to disable Size Classes. Go to Storyboard and in the right sidebar, you should see a check box saying 'Use Size Classes' under 'Interface builder document'. Untick it and you should see the map again.
Read this to find out why this happens:
iOS MkMapView blank after moving to Xcode 6

How can I see why titanium app crashes on Blackberry simulator

I do a Titanium application that woks on iOS and android. Now, I want to create the Blackberry version.
I've tried with a simple app and it's launched well at simulator, but when I've tried my app it doesn't work.
It launches splash screen and begins to load the elements, but I think the app crash because simulator returns to main screen, there isn't any alert (like on android when app stop unexpectedly), it only returns to main screen.
My problem is that I don't know what happen and I can't find any error logs...
I connect by telnet to the simulator, and there I can see the first traces of my app, but any error.
Do you know what can be happened? How can I know if I have an error? How can I know if my app has crashed?
Sorry, if it's an easy question, I'm newbie at Blackberry.
I'm using Titanium SDK 3.2.2 and Blackberry SDK 10.02
Thank you very much
I've created a new project (with Titanium SDK 3.1.3 instead of Titanium SDK 3.2.2) and copy all files there. I've tried to launch the app many times, and one of them, the app launches.
Maybe it was a computer or simulator problem.

'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named UIKeyCommand'

My app is crashing when I try to display another view controller. It does work correctly when the iOS SDK is set to 7.0 and I am targeting iOS 7.0. But I need the app to target iOS 6.0. UIKit is (obviously) declared in the imports. The UITableViewController I am trying to present works perfectly fine as far as I'm aware - I created it for another app, using XCode 4.6.3, targeting 6.0 and it compiled without error (as does this one) but it also displays without crashing.
I could provide code, code which does nothing more than present the table view controller using a modal transition, but I even went to the point of connecting a UIButton to the UITableViewController - it worked on iOS 7, but not 6. It's my belief that when I compile with the iOS 6.1 SDK, it should be using iOS 6.1 frameworks?
UIKeyCommand is only available in iOS 7 and later, according to this. That gives me reason to believe that it is using the iOS 7.0 frameworks even though the iOS 6.1 SDK has been specified.
I've tagged this with the xcode tag as I believe it could possibly be caused by xcode incorrectly searching for the specified SDK's frameworks.
I had the same problem as you and here is what i did to solve it:
I opened the Storyboard as Source Code and searched for the tag : keyCommands , I found a tag similar to
<keyCommands> <keyCommand/> </keyCommands>
and i deleted it.
After that i runned the app in iOS 6 & 7 and it worked with no problem.
Let me know if this works on your app too!
Cheers!

interface orientation in iOS6

I have to make some changes in an existing app. That app was last update in June when iOS6.0 was not launched. I am wondering how the orientation works properly on the devices running with iOS6.0?? As that build contains deprecated methods of oreintation?
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
This method doesnt get called in iOS6.0 then how that app in app store is working fine in iOS6 devices? Additionally if i run this app from xcode using its code, then it doesnt support orientation for iOS6. Now my client is saying app on app store is working fine with orientation in all the devices and the new build is not supporting orientation. I know I can fix this issue by using new methods for orientation
-(BOOL)shouldAutoRotate
but just curious to know how older app is working fine on iOS6 devices using deprecated methods when those method are not even getting called in when i run it using xcode.
The older applications were compiled using iOS 5.x SDK, that's why they can run fine on iOS 6, the problem occurs when you compile non iOS 6 compliant code with iOS 6.x SDK.