I've been making an app and only testing in iOS 7 simulator until now, and I wanted to try and build for iOS 6, to see if it looks good. Problem is, I get a mysterious crash when I build for iOS 6. iOS 7 is still just fine, but iOS 6 doesn't start. The file editor goes to main.m, and the debugger shows this:
2014-03-10 21:45:55.481 Can'Art 2014[4479:907] -[UINavigationController interactivePopGestureRecognizer]: unrecognized selector sent to instance 0x797d720
2014-03-10 21:45:55.483 Can'Art 2014[4479:907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UINavigationController interactivePopGestureRecognizer]: unrecognized selector sent to instance 0x797d720'
*** First throw call stack:
(0x179d012 0x15c2e7e 0x18284bd 0x178cbbc 0x178c94e 0xbb5b 0x814817 0x814882 0x814b2a 0x82bef5 0x82bfdb 0x82c286 0x82c381 0x82ceab 0x82cfc9 0x82d055 0x9323ab 0x78392d 0x15d66b0 0x424fc0 0x41933c 0x424eaf 0x8228cd 0x76b1a6 0x769cbf 0x769bd9 0x768e34 0x768c6e 0x769a29 0x76c922 0x816fec 0x763bc4 0x763dbf 0x763f55 0x76cf67 0x730fcc 0x731fab 0x743315 0x74424b 0x735cf8 0x2928df9 0x1720f3f 0x172096f 0x1743734 0x1742f44 0x1742e1b 0x7317da 0x73365c 0xb23d 0x264970d)
libc++abi.dylib: terminate called throwing an exception
I've been searching for errors in my project, and everything I've found up until now is that in Copy Bundle Resources, in Build Phases, Main.storyboard is red. I assumed this means that it can't localize the Main.storyboard file, but readding the references and readding it to the Copy Bundle Resources didn't work. It also stays red when building for iOS 7, even though it works fine.
Stacktrace says, that you are trying to use interactive pop gesture which is not available in iOS6.
You can use respondsToSelector: to check if your instance can send such kind of message.
For ex.
if ([self.navigationController respondsToSelector:#selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.delegate = self;
}
Related
Sorry to ask, I have tried everything I have read online, but I keep getting the SIGABRT Error when I try to run an app.
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
#autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
Error code comes up beside the return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
line.
The debugger just states
2013-10-18 10:29:45.270 Black History Month[733:c07] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x903f770> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'
*** First throw call stack:
(0x14a3052 0xea3d0a 0x14a2f11 0x9b3032 0x924f7b 0x924eeb 0x93fd60 0x23291a 0x14a4e1a 0x140e821 0x23146e 0x233010 0x1314a 0x13461 0x127c0 0x21743 0x221f8 0x15aa9 0x138dfa9 0x14771c5 0x13dc022 0x13da90a 0x13d9db4 0x13d9ccb 0x122a7 0x13a9b 0x2712 0x2685)
terminate called throwing an exception
I have tried producing a couple different apps and always get this error so cannot release, I have now tried a simple uiwebview app and the same thing keeps happening. I have tried running on many different deployement targets with no successful outcomes.
I have tried resetting the simulator, restarting both xcode the simulator, and computer multiple times, turned off auto layout for the xib file. No luck. Any ideas?
Thanks in advance
This has nothing to do with Xcode. Your application has thrown a run time exception. Since the exception is not caught anywhere it is poped upto main. Set an exception to All Breakpoint to figure out whats wrong. If your app worked in Xcode 4 then check the iOS deployment target. I suspect it has to do with iOS 7 which is default target in Xcode 5.
I also had this error. After spending so much time, I found how to fix it. First of all go the console and see where is the error (mine was related to storyboards and its code) The way I fixed my error was by going in story board. Below the iPhone screen, there will be small yellow button. Right click on it and you will see that is causing error. Delete(x) it if there is yellow error sign.
If this does not fix your error then try to make new project and then replace its blank files with old files of your old project. I had same error in very beginning and by doing this program run without any error.
Other people suggests by restarting your laptop and running it again, reseting the iOS simulator, or changing iOS debugger (however this does not work in latest x code since there is only one debugger)
Hope this helps
From the error message
[<UIApplication 0x903f770> setValue:forUndefinedKey:]: this class is
not key value coding-compliant for the key view.
one can see that you try to set the view property on an instance of UIApplication,
but UIApplication does not have a view property.
To find the point where the error occurs, set a breakpoint on
"All Objective-C Exceptions".
I also had this error. After spending so much time, I found how to fix it. First >of all go the console and see where is the error (mine was related to storyboards >and its code) The way I fixed my error was by going in story board. Below the >iPhone screen, there will be small yellow button. Right click on it and you will >see that is causing error. Delete(x) it if there is yellow error sign.
I would +1 Viraj's answer, but I don't have the reputation. I can verify that in a Swift project in X-Code 6, this solution works. My problem was:
My app ran great on the initial view controller and on the 2nd screen, but upon trying to load the third view controller, my app would crash and return the "SIGABRT" error.
The Fix was indeed to go to the screen where my app was crashing, right click on the yellow icon (which is ABOVE the view in my version of X Code). I had two IB Outlets assigned to views, which did not have connections to the code. I did not need them too (they were old), so I deleted both from within the Outlets inspector in the right sided attributes inspector.
I am new on ios and i am following a tutorial to develop a calculator.
When i build my project it succeds, but on run time it crashes and throwa an exception:
`2012-09-19 10:03:51.469 AhsanCalculator[325:f803] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x6d59870> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key pushOperand.'
*** First throw call stack:
My code is here if you need more detail. Tell me what you need and i will give you all the details.
Xcode = 4.3.3
5.1 iPhone simulator
Please help to solve this issue
The crash occurred for you is because, in your xib you have linked/connected some wrong objects, i mean a UITextField to a UITextView or some thing like that.
When you open Xib right clicking on the files owner object, it shows some of the IBOutlets connected with a warning icon, delete those and connect to the right/correct one.
This will clear your crash, and works fine.
As you are new to iOS development, here are some link to learn about what to when a crash appears in the project,
Its is by Raywenderlich, here it is a 2 part tutorial part 1 and part 2.
Good morning,
I have an application that run well on iPhone but crash to launch in iPad and don't understand the problem.
Crash incident:Hardware Model: iPad3,3
Process: SardinianPirates1 [20569]
Path: /var/mobile/Applications/BD12D72A-B8BC-4443-B866-8B632211A467/nameofapp.app/nameofapp
Identifier: nameofapp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-04-11 15:41:24.829 -0700
OS Version: iPhone OS 5.1 (9B176)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/BD12D72A-B8BC-4443-B866-8B632211A467/nameofapp.app> (loaded)' with name 'MainWindow-iPad''
*** First throw call stack:
(0x31f9e88f 0x367f3259 0x31f9e789 0x31f9e7ab 0x32d9f437 0x32da094d 0x32cd6509 0x32b5f893 0x32b598d7 0x32b27c6b 0x32b2770f 0x32b270e3 0x3595322b 0x31f72523 0x31f724c5 0x31f71313 0x31ef44a5 0x31ef436d 0x32b58a13 0x32b55e7d 0xfbdef 0xfbda8)
This is my Xcode error log when launch the iPad simulator
2012-04-12 07:53:50.556 nameofapp[16337:10a03] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/myname/Library/Application Support/iPhone Simulator/5.1/Applications/E8655CDA-1E4F-41CB-B3C7-9A5B7BFF13A6/nameofapp.app> (loaded)' with name 'MainWindow-iPad''
*** First throw call stack:
(0x1c1a022 0x1905cd6 0x1bc2a48 0x1bc29b9 0x5bb638 0x5bceb7 0x399ce1 0x399ff8 0x39917f 0x3a8183 0x3a8c38 0x39c634 0x2312ef5 0x1bee195 0x1b52ff2 0x1b518da 0x1b50d84 0x1b50c9b 0x398c65 0x39a626 0x25a7 0x2541 0x1)
terminate called throwing an exception(lldb)
Any idea for help me?
Thank you
It's saying that it expects to find a file called MainWindow-iPad in your application bundle. Look in your Target settings under Summary, iPad Deployment Info. As Radrider33 says, this may also be requested by your app delegate.
There are three different ways you can choose to fix this:
If your app UI is precisely designed for the iPhone screen size, go to Summary, iOS Application Target and set Devices to iPhone. On the iPad, your app will run in an iPhone-shaped window, with the usual 2x button. This is the least work, but has the ugliest results.
If your iPhone UI makes good use of autosizing masks, you can set the iPad Main Interface or Main Storyboard filename to match the iPhone / iPod version. Everything view will be fitted to the larger iPad screen based on its masks.
If you want to redesign your UI for the iPad (most work, but Apple would rather you do this), create an appropriate set of files in Interface Builder. Either name the window MainWindow-iPad, or change the iPad Main Interface file to match whatever file you create.
Change your project's default window settings.
and also check your ios version of ipad
Check your project settings. Your app is trying to loan an xib with file name " MainWindow-iPad" and cannot. Be sure that everything is correct in both your app delegate as well as your project's default window settings.
I've got an app that has been out for sometime, but we are seeing some issues now when running on iOS 5.0 & up. The crash happens when a user selects a cell in a tableview. The tableview is toggling a checkmark on or off so that the end user can select items from a list to refine a query. Everything worked great from version 3 & 4, but then it just broke when iOS 5 came out.
This is actually an app that I inherited from another developer when I took this job, so there is no telling how deep this problem runs. I did find that if I changed the way he was displaying the checkmark that it fix the problem, but then the checkmark would disappear as soon as I scrolled it off screen in the view.
The console is showing the following error. Any advice would be most appreciated.
-[CALayerArray row]: unrecognized selector sent to instance 0x796db410
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CALayerArray row]: unrecognized selector sent to instance 0x796db410'
This looks like a typical case of an overreleased object. To debug this kind of problem you could use the allocations instrument with the NSZombie detection enabled.
I'm trying to realize an universal application (for iPhone/iPad), and I'd like to use the same UIViewController to set up the behaviour for both of the devices.
I got a surprising error at launch time, which is :
2010-07-15 11:31:03.420 AppUniverselle[2761:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7000670> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key myLabel.'
2010-07-15 11:31:03.421 AppUniverselle[2761:207] Stack: (
29291611,
2421585161,
...
2727445,
2764719,
8884,
8738
)
I can't figure out where I failed. Furthermore, to avoid any typo problem, I restarted the project, but it ends on the same error.
The main surprising point is that the application works fine on the iPad simulator, but not on the iPhone one. Perhap's there is a problem with the iPhone simulator ?
Does someone know the answer of this question or ever heard about that kind of problem ?
It looks like you have an outlet called myLabel in your NIB file, but there's no such outlet in your view controller instance.