我的应用在发布时崩溃

时间:2017-01-23 14:01:13

标签: ios xcode

由于某种原因,当我运行我的应用程序时,应用程序崩溃然后在Xcode中它将我带到应用程序委托。错误消息在顶部给我(其中“AppDelegate类:UIResponder,UIApplicationDelegate”是)。错误消息是“线程1:信号SIGABRT”。由于我只是编程方面的新手,我不知道这意味着什么,并且没有在网上找到任何帮助。以下是我在Xcode中获得的截图。这不是另一个问题的重复,因为我的问题是为什么Xcode将我带到app delegate并向我显示SIGABRT ERROR。我只是不知道在那之后应该做什么.FYI-我不知道在控制台中出现错误enter image description here

enter image description here

这就是我的控制台:

2017-01-23 17:58:27.966 TIP CALCULATOR[53908:2610390] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<TIP_CALCULATOR.ViewController 0x7fbc53d0add0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key calculateButtonPressed.'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010a9a9d4b __exceptionPreprocess + 171
    1   libobjc.A.dylib                     0x000000010788321e objc_exception_throw + 48
    2   CoreFoundation                      0x000000010a9a9c99 -[NSException raise] + 9
    3   Foundation                          0x00000001073919df -[NSObject(NSKeyValueCoding) setValue:forKey:] + 291
    4   UIKit                               0x000000010830e293 -[UIViewController setValue:forKey:] + 88
    5   UIKit                               0x000000010858279e -[UIRuntimeOutletConnection connect] + 109
    6   CoreFoundation                      0x000000010a94e9e0 -[NSArray makeObjectsPerformSelector:] + 256
    7   UIKit                               0x0000000108581122 -[UINib instantiateWithOwner:options:] + 1867
    8   UIKit                               0x00000001083149c5 -[UIViewController _loadViewFromNibNamed:bundle:] + 386
    9   UIKit                               0x00000001083152e7 -[UIViewController loadView] + 177
    10  UIKit                               0x000000010831561c -[UIViewController loadViewIfRequired] + 201
    11  UIKit                               0x0000000108315e70 -[UIViewController view] + 27
    12  UIKit                               0x00000001081df4b5 -[UIWindow addRootViewControllerViewIfPossible] + 71
    13  UIKit                               0x00000001081dfc06 -[UIWindow _setHidden:forced:] + 293
    14  UIKit                               0x00000001081f3519 -[UIWindow makeKeyAndVisible] + 42
    15  UIKit                               0x000000010816bf8d -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4818
    16  UIKit                               0x00000001081720ed -[UIApplication _runWithMainScene:transitionContext:completion:] + 1731
    17  UIKit                               0x000000010816f26d -[UIApplication workspaceDidEndTransaction:] + 188
    18  FrontBoardServices                  0x000000010c10f6cb __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
    19  FrontBoardServices                  0x000000010c10f544 -[FBSSerialQueue _performNext] + 189
    20  FrontBoardServices                  0x000000010c10f8cd -[FBSSerialQueue _performNextFromRunLoopSource] + 45
    21  CoreFoundation                      0x000000010a94e761 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    22  CoreFoundation                      0x000000010a93398c __CFRunLoopDoSources0 + 556
    23  CoreFoundation                      0x000000010a932e76 __CFRunLoopRun + 918
    24  CoreFoundation                      0x000000010a932884 CFRunLoopRunSpecific + 420
    25  UIKit                               0x000000010816daea -[UIApplication _run] + 434
    26  UIKit                               0x0000000108173c68 UIApplicationMain + 159
    27  TIP CALCULATOR                      0x000000010729cf9f main + 111
    28  libdyld.dylib                       0x000000010b95968d start + 1
    29  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

1 个答案:

答案 0 :(得分:0)

检查UI元素与连接检查器storyboard connections inspector中的代码之间是否存在无效连接

相关问题