objective c - IOS Application Terminating at main file itself NSException -
2015-09-21 10:57:48.696 kip up[4707:140538] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '*** -[__nsarraym insertobject:atindex:]: object cannot nil' *** first throw call stack: ( 0 corefoundation 0x00ce6746 __exceptionpreprocess + 182 1 libobjc.a.dylib 0x005b9a97 objc_exception_throw + 44 2 corefoundation 0x00b9bce1 -[__nsarraym insertobject:atindex:] + 881 3 corefoundation 0x00b9b941 -[__nsarraym addobject:] + 65 4 uikit 0x0134bc3b -[uiview(uiviewgestures) addgesturerecognizer:] + 210 5 kip 0x000c0c1e -[viewcontroller viewdidload] + 414 6 uikit 0x0141dd54 -[uiviewcontroller loadviewifrequired] + 771 7 uikit 0x0141e045 -[uiviewcontroller view] + 35 8 uikit 0x0130fe35 -[uiwindow addrootviewcontrollerviewifpossible] + 66 9 uikit 0x013102fc -[uiwindow _sethidden:forced:] + 287 10 uikit 0x013105f8 -[uiwindow _orderfrontwithoutmakingkey] + 49 11 uikit 0x0131e966 -[uiwindow makekeyandvisible] + 80 12 uikit 0x012b3e88 -[uiapplication _callinitializationdelegatesformainscene:transitioncontext:] + 3217 13 uikit 0x012b73d2 -[uiapplication _runwithmainscene:transitioncontext:completion:] + 1639 14 uikit 0x012d08ee __84-[uiapplication _handleapplicationactivationwithscene:transitioncontext:completion:]_block_invoke + 59 15 uikit 0x012b5ffa -[uiapplication workspacedidendtransaction:] + 155 16 frontboardservices 0x04490c9e __37-[fbsworkspace clientendtransaction:]_block_invoke_2 + 71 17 frontboardservices 0x0449072f __40-[fbsworkspace _performdelegatecallout:]_block_invoke + 54 18 frontboardservices 0x044a2d7c __31-[fbsserialqueue performasync:]_block_invoke_2 + 30 19 corefoundation 0x00c08050 __cfrunloop_is_calling_out_to_a_block__ + 16 20 corefoundation 0x00bfd963 __cfrunloopdoblocks + 195 21 corefoundation 0x00bfd7bb __cfrunlooprun + 2715 22 corefoundation 0x00bfca5b cfrunlooprunspecific + 443 23 corefoundation 0x00bfc88b cfrunloopruninmode + 123 24 uikit 0x012b59b2 -[uiapplication _run] + 571 25 uikit 0x012b90b6 uiapplicationmain + 1526 26 kip 0x000c229a main + 138 27 libdyld.dylib 0x03278ac9 start + 1 ) libc++abi.dylib: terminating uncaught exception of type nsexception (lldb)
please check if root view controller uiviewcontroller
connections intact. happens due broken link on interface builder. if using storyboards, make sure haven't hooked duplicate referencing outlets. ensure importing appdelegate.h
.
again there n number of reason crash. please use exception or symbolic break point come conclusion.
Comments
Post a Comment