HelloWorld for iOS application in creating IOS gettting started, i have unknown exception in the running time - iphone

I am trying to implement the getting started helloWorld, on XCode 4.6, but I am getting this sigabart. The code is exactly like the apple website. No errors are produced but in runtime I have this:
2013-02-11 12:38:42.594 hellooWorld[1794:c07] *** Terminating app due to uncaught exception 'NSUnknownKeyException',
reason: '[<ViewController 0x75562d0> setValue:forUndefinedKey:]:
this class is not key value coding-compliant for the key greeting.'
*** First throw call stack:
(0x1c91012 0x10cee7e 0x1d19fb1 0xb7ae41 0xafc5f8 0xafc0e7 0xb26b58 0x230019
0x10e2663 0x1c8c45a 0x22eb1c 0xf37e7 0xf3dc8 0xf3ff8 0xf4232 0x433d5
0x4376f 0x43905 0x4c917 0x1096c 0x1194b 0x22cb5 0x23beb 0x15698 0x1becdf9
0x1becad0 0x1c06bf5 0x1c06962 0x1c37bb6 0x1c36f44 0x1c36e1b 0x1117a 0x12ffc
0x267d 0x25a5)
libc++abi.dylib: terminate called throwing an exception
I did delete the connections and connect the label, textfield and button again to view controller.m but get the same result. I connectted the textfiled to the delegate but received the same result.
Can someone help elucidate what is going on?

Check for the linking of objects or methods in your storyboard connections inspector.

Related

Crash when updating Dictionary (Heap corruption detected, free list is damaged at ...)

So I'm loading some images from files which I saved in the app's document directory and upon completion, I update a dictionary which holds all the images for my tableview. So far so good, everything's working just fine.
But now I've stumbled upon a really peculiar crash. Sometimes when updating the dictionary the app crashes, giving me the error message: "Heap corruption detected, free list is damaged at ...".
I've added a symbolic breakpoint at malloc_error_break and turned on the Address Sanitizer the Undefined Behaviour Sanitizer and Zombie Objects as advised in this post: iOS error : Heap corruption detected, free list is damaged and Incorrect guard value: 0
Now I'm getting the following error message, which doesn't really help me either:
2019-06-09 17:35:20.806306+0200 Wizy[9953:3221129] -[NSIndexPath count]: unrecognized selector sent to instance 0x8000000000000000
2019-06-09 17:36:28.490834+0200 Wizy[9953:3221129] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSIndexPath count]: unrecognized selector sent to instance 0x8000000000000000'
*** First throw call stack:
(0x1fc9d7ea0 0x1fbba9a40 0x1fc8f0d04 0x1fc9dd7b8 0x1fc9df45c 0x10952fbdc 0x10952fb5c 0x104868004 0x10461a178 0x104b59fd8 0x1045e4bd0 0x1067817c8 0x10a093824 0x10a094dc8 0x10a0a6330 0x10a0a6bc8 0x1fc5f417c 0x1fc5f6cec)
libc++abi.dylib: terminating with uncaught exception of type NSException
I have no clue as to what could've caused that crash, hopefully someone can help me out here!

iOS - Instruments Zombie detection not helping [duplicate]

This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 7 years ago.
I am facing a problem in Tracing the cause of Exception. The applciation crashes with the message
`Terminating app due to uncaught exception 'NSUnknownKeyException', reason: [<ExpandingGridViewController 0x7574760> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key gridView.
*** First throw call stack:
(0x1ec2012 0x12ffe7e 0x1f4afb1 0xbd5e41 0xb575f8 0xb570e7 0xb81b58 0x28b019 0x1313663 0x1ebd45a 0x289b1c 0x14e7e7 0x14edc8 0x14eff8 0x14f232 0x44c5 0xabd66 0xab753 0xb81cc 0x60af 0x38b0 0x3156 0xfb50 0x10e46 0xb275b3 0x1e81376 0x1e80e06 0x1e68a82 0x1e67f44 0x1e67e1b 0x1e1c7e3 0x1e1c668 0x6dffc 0x2535 0x2435)
libc++abi.dylib: terminate called throwing an exception`
I have tried detecting Zombies using Instruments but of no use.
and after the application crashes there is not trace of any Zombie in the Instruments.
What else should be done to detect the reasons of the crash?
Something is doing a setValue:<some object> forKey:#"gridView" - probably Interface Builder has a view set to that, but that property is no longer in your .m file.
Failing that, do a global search on your project and find all occurrences of gridView, and add an assert in front of each that the object receiving that message has a property gridView.

App crash when call imei method

-[UIDevice imei]: unrecognized selector sent to instance 0x1f566990
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[UIDevice imei]: unrecognized selector sent to instance 0x1f566990'
*** First throw call stack:
(0x376962a3 0x359a697f 0x37699e07 0x37698531 0x375eff68 0xb7465 0x38986595 0x389db13b
0x389db081 0x389daf65 0x389dae89 0x389da5c9 0x389da4b1 0x389c8b93 0x389c8833 0xb34fd
0x38a520ad 0x38a5205f 0x38a5203d 0x38a518f3 0x38a51de9 0x3897a5f9 0x38967809 0x38967123
0x37b1a5a3 0x37b1a1d3 0x3766b173 0x3766b117 0x37669f99 0x375dcebd 0x375dcd49 0x37b192eb
0x389bb301 0xb38d3 0xb3028)
libc++abi.dylib: terminate called throwing an exception
Myxcode version 4.6.2 please help.
There's no method called imei on the UIDevice class as provided by Apple, so when you try to call it you get a crash.
That said, there is such a method in Erica Sadun's UIDevice extensions - perhaps you're reusing code that assumes that they're present - so if you add them to your project then your code should work as you expect.

iOS - Video playing gives errors

When I follow this tutorial, it gives me an error on the [playercontroller release]; line, so I remove it, and then it gives me these errors when I try to run it.
I tried making another app to test the video, and it works seamlessly, but it will not work in my main app. Can anyone help?
And when I reimported the framework, and tried to play the video, it gives me this error:
2012-08-17 11:27:03.174 LYWAM Tour[768:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter'
*** First throw call stack:
(0x1e15022 0x10fdcd6 0x1dbda48 0x1dbd9b9 0xba253b 0xba24c5 0x54ac 0x1e16e99 0x26314e 0x2630e6 0x309ade 0x309fa7 0x308d8a 0x2882cf 0x2885e6 0x26edc4 0x262634 0x16f7ef5 0x1de9195 0x1d4dff2 0x1d4c8da 0x1d4bd84 0x1d4bc9b 0x16f67d8 0x16f688a 0x260626 0x24cd 0x2435 0x1)
terminate called throwing an exception(lldb)
I take it GVE1ViewController is a class you wrote yourself? Does it definitely implement a method called GrommeVideoExcerpt1? Is what you assigned to the variable actually an instance of GVE1ViewController (or a subclass?) Put in an NSLog to check that it really is an instance of GVE1ViewController.
To do the NSLog, you need a line of the form:
NSLog(#" My controller = %#", myVar);
where myVar is whatever variable you have containing a reference to the GVE1ViewController.

this class is not key value coding-compliant for the key view [duplicate]

This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 7 years ago.
i´m very new to xcode... a made an app (simple calculator) work´s pretty good (on simulator and device).
When i set the main interface in the summary options from Target, i get the following error when starting the simulator:
2012-04-14 12:17:27.123 CalcTest[27550:f803] * Terminating app due
to uncaught exception 'NSUnknownKeyException',
reason:
'[<UIApplication 0x6a14650> setValue:forUndefinedKey:]: this class is
not key value coding-compliant for the key calculatorScreen.'
* First throw call stack: (0x12db022 0x18f8cd6 0x12daee1 0xcc2022 0xc33f6b 0xc33edb 0xc4ed50 0x53671a 0x12dcdea 0x12467f1 0x53526e
0x536eb7 0x313ce1 0x313ff8 0x31317f 0x322183 0x322c38 0x316634
0x27fcef5 0x12af195 0x1213ff2 0x12128da 0x1211d84 0x1211c9b 0x312c65
0x314626 0x1bad 0x1b15 0x1) terminate called throwing an
exception(lldb)
to find the problem, i started a new view based project.
Run the empty new project on the simulator -->works,
But when I set the main interface, to ViewController, in the summary -->the Simulator crash with
2012-04-14 12:11:17.492 crash[27494:f803] * Terminating app due to uncaught
exception 'NSUnknownKeyException', reason:
'[<UIApplication 0x6a6f4b0> setValue:forUndefinedKey:]: this class is
not key value coding-compliant for the key view.'
* First throw call stack:
(0x13c7022 0x1558cd6 0x13c6ee1 0x9bf022 0x930f6b 0x930edb 0x94bd50
0x23371a 0x13c8dea 0x13327f1 0x23226e 0x233eb7 0x10ce1 0x10ff8 0x1017f
0x1f183 0x1fc38 0x13634 0x12b1ef5 0x139b195 0x12ffff2 0x12fe8da
0x12fdd84 0x12fdc9b 0xfc65 0x11626 0x1d4d 0x1cb5) terminate called
throwing an exception
is there a solution for the problem?
If you have a control in your nib (xib file) that is linked to a property (IBOutlet) or method (IBAction) in your view controller, and you have either deleted or renamed the property or method, the runtime can't find it because it has been renamed and therefore crashes.
In your case, you have set the Main Interface property of the project to your ViewController.nib. This is a problem because the only nibs that should be used as Main Interface should have UIWindows in them and the File Owner in that nib should be set to the AppDelegate. The UIWindow in the nib should be linked to the File Owner's (AppDelegate) window property. Because you set that with a nib without the traits the runtime was looking for, it gives you this error.
The solution is to leave the Main Interface blank as you do not have to set up UIWindows manually anymore.
Just had the same problem and fixed it by right Control-Clicking controls in the xib file to see referencing Outlets. Turned-out that some of the control were still referencing and older name and causing this error to happen.
if you get a message similar to:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason:
'[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
click the add (+) at the left bottom corner of the BreakPoint navigation area, choose 'add Exception Breakpoint', since it is crashing because of 'NSUnknownKeyException', and opt for 'All'. Run the program. The program stops at the first exception.
try this, select File's Owner then click on the "Connection Inspector" (upper on the top of right pane), you will see all the outlets. Look for any sign like this (!) you will find it on the small circle which indicates a missing outlet, all you have to do is linking it properly or remove the outlet.
Try this,
Go to Target=>Build Phases=>Compile Sources
Then include 'calculatorScreen.m'
I was facing the same problem. In my case i had renamed the text label in .h file. So there was multiple reference for that label in my main.storyboard file. Once i removed old reference my code started working.
Please check your target membership
select first option.this may help to others