iPhone Project crash on start - ios

I am trying to run my application and suddenly i get this error:
2014-11-05 12:12:54.972 [238:9512] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ''
*** First throw call stack:
(0x235a7c1f 0x30dafc8b 0x235a7b65 0x299b61 0x299adf 0x322ec7 0x13b50d 0x242b6d6f 0x2356e377 0x2356d787 0x2356bded 0x234ba211 0x234ba023 0x2a86d0a9 0x26ac61d1 0x102bff 0x102b88)
libc++abi.dylib: terminating with uncaught exception of type NSException
It's on the start of the application,
i get this error without changing any code in my project, any idea what can cause this?

To resolve the NSException crashes, you have to remove all the warnings of .xib/.storyboard files. Cross check the IBOutlets warnings and you can see a cross (X) icon related to the yellow warnings to remove it.

Related

iOS app termination due to uncaught error

This is the exception and in my ignorance of using the tools in the IDE I have a very basic question. How do I go to the line of code that causes the issue? I have located where the issue is, but rather than NSLogging a message in the didload and didAppear events, then stepping through the code until is breaks seems like a long way to figure this out. I am assuming that the [5970:1623718] is a clue, but to what?
2017-10-04 08:22:47.798 Auto Mileage - Universal[5970:1623718] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 4 beyond bounds [0 .. 3]'
*** First throw call stack:
(0x2580f91b 0x24faae17 0x2572172b 0xd89e3 0xd9e57 0x2a0d1465 0x2a0d15a5 0x2a0c0b51 0x2a0d5d1b 0x29e7523b 0x29d86a73 0x27e1ebcd 0x27e1a375 0x27e1a209 0x27e196d1 0x27e193a5 0x29d7db79 0x257d16c9 0x257cf9cd 0x257cfdff 0x2571f229 0x2571f015 0x26d0fac9 0x29df3189 0xe9159 0x253c7873)
libc++abi.dylib: terminating with uncaught exception of type NSException
You can add an "Exception Breakpoint".
Like in the picture, select "Show the Breakpoint navigator" (the blue icon on the top of the navigator), then click on the plus icon on the bottom and click on "Add Exception Breakpoint".

Exception while running the app for the first time

I am getting the following exception
2017-06-13 10:55:13.656 myappname[11235:3769332] * Terminating app
due to uncaught exception 'NSInvalidArgumentException', reason: 'Could
not find a storyboard named 'Main~ipad' in bundle NSBundle
(loaded)'
* First throw call stack: (0x24fcb91b 0x24766e17 0x29c4bf71 0x297e82ab 0x295bb445 0x297e714b 0x297fb83d 0x297e47b3 0x2666ec07
0x2666eab9 0x2666edb9 0x24f8ddff 0x24f8d9ed 0x24f8bd5b 0x24edb229
0x24edb015 0x295b4c3d 0x295af189 0x140a2d 0x24b83873) libc++abi.dylib:
terminating with uncaught exception of type NSException
when I run my app for the first time in iPad and when I run the same code again the code is working fine. I have 2 different storyboard for iPhone and iPad the Main~ipad file is there in app bundle and I see the file in copy bundle resources. Please help me to fix this
Thanks in Advance

Xcode - terminating with uncaught exception of type NSException (lldb)

I will not ask the question about what causes this error. It has been replied multiple times.
When I get this error
libc++abi.dylib: terminating with uncaught exception of type
NSException (lldb)
These are the last lines in the console, Xcode doesn't give me more informations. No details, why ? Is this behavior normal ?

BugClipper integration issue

I have trouble integrating BugClipper into my project.
I followed the integration instructions mentioned on their website
But, the when I continue with my build it throws the following error -
Cannot find executable for CFBundle/CFPlugIn 0x17eaf2f0 (not loaded)
2014-07-24 12:34:15.457 BugClipper[371:60b] -[SMOCInvokerView smoc_width]: unrecognized selector sent to instance 0x17eae380
2014-07-24 12:34:15.459 BugClipper[371:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SMOCInvokerView smoc_width]: unrecognized selector sent to instance 0x17eae380'
*** First throw call stack:
(0x2eafce83 0x391a66c7 0x2eb007b7 0x2eaff0af 0x2ea4ddc8 0x10e8bf 0x10e60f 0x3968b0af 0x3968bcdb 0x10e5e7 0x105861 0xea8e5 0x312f1aad 0x312f14f3 0x312ebb41 0x31286a07 0x31285cfd 0x312eb321 0x3373876d 0x33738357 0x2eac7777 0x2eac7713 0x2eac5edf 0x2ea30471 0x2ea30253 0x312ea5c3 0x312e5845 0xeaae5 0x3969fab7)
libc++abi.dylib: terminating with uncaught exception of type NSException
it seems the category is not loaded, better go to Build Settings of your Target App, and search for Other Linker Flag and add one line in there, -ObjC -all_load
This should definitely solve your problem.
Cheers

NSZombieEnabled not working

I've set NSZombieEnabled to YES in my scheme but still no debug info. I am using Xcode 4.6.3.
I've read this question but it does not solve my issue: NSZombie Enabled but Still No Debug Info.
Here is the crash log,
-[MODELNode nodeList]: unrecognized selector sent to instance 0x1315170
2013-12-16 12:30:29.990 OHI Control[6198:907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MODELNode nodeList]: unrecognized selector sent to instance 0x1315170'
*** First throw call stack:
(0x311c32a3 0x3906397f 0x311c6e07 0x311c5531 0x3111cf68 0x1a2273 0x333fc547 0x333fd789 0x333f4add 0x333f53eb 0x333f27d3 0x333fc685 0x333fcb3d 0x333e375f 0x32fce803 0x32d78d8b 0x32d78929 0x32d7985d 0x32d79243 0x32d79051 0x32fd48eb 0x311986cd 0x311969c1 0x31196d17 0x31109ebd 0x31109d49 0x34cd32eb 0x3301f301 0x2f15 0x3949ab20)
libc++abi.dylib: terminate called throwing an exception
How do I get this working correctly?
For adding Exception Break Point I am adding here images to explain how.
That's All. Hope this helps.

Resources