ios - 使用 firebase 设置用户登录,但在运行应用程序时收到 Sigabrt

标签 ios swift authentication firebase sigabrt

作为一个编程新手,我总是收到这些 Sigabrt,这让我很不舒服。我希望我知道如何自己修复这些简单的错误,但我不知道从哪里开始:(我什至没有碰过 AppDelegate,而这就是 Sigabrt 所在的地方...希望你们能提供帮助: )

2016-03-24 15:33:38.938 EXTBP[4833:289124] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<EXTBP.LoginViewController 0x7faa41443dc0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key loginButton.'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010b2d2e65 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010d012deb objc_exception_throw + 48
    2   CoreFoundation                      0x000000010b2d2aa9 -[NSException raise] + 9
    3   Foundation                          0x000000010b69b9bb -[NSObject(NSKeyValueCoding) setValue:forKey:] + 288
    4   UIKit                               0x000000010bc7e320 -[UIViewController setValue:forKey:] + 88
    5   UIKit                               0x000000010beacf41 -[UIRuntimeOutletConnection connect] + 109
    6   CoreFoundation                      0x000000010b2134a0 -[NSArray makeObjectsPerformSelector:] + 224
    7   UIKit                               0x000000010beab924 -[UINib instantiateWithOwner:options:] + 1864
    8   UIKit                               0x000000010bc84eea -[UIViewController _loadViewFromNibNamed:bundle:] + 381
    9   UIKit                               0x000000010bc85816 -[UIViewController loadView] + 178
    10  UIKit                               0x000000010bc85b74 -[UIViewController loadViewIfRequired] + 138
    11  UIKit                               0x000000010bc862e7 -[UIViewController view] + 27
    12  UIKit                               0x000000010bb5cab0 -[UIWindow addRootViewControllerViewIfPossible] + 61
    13  UIKit                               0x000000010bb5d199 -[UIWindow _setHidden:forced:] + 282
    14  UIKit                               0x000000010bb6ec2e -[UIWindow makeKeyAndVisible] + 42
    15  UIKit                               0x000000010bae7663 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4131
    16  UIKit                               0x000000010baedcc6 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1760
    17  UIKit                               0x000000010baeae7b -[UIApplication workspaceDidEndTransaction:] + 188
    18  FrontBoardServices                  0x000000010eea4754 -[FBSSerialQueue _performNext] + 192
    19  FrontBoardServices                  0x000000010eea4ac2 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
    20  CoreFoundation                      0x000000010b1fea31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    21  CoreFoundation                      0x000000010b1f495c __CFRunLoopDoSources0 + 556
    22  CoreFoundation                      0x000000010b1f3e13 __CFRunLoopRun + 867
    23  CoreFoundation                      0x000000010b1f3828 CFRunLoopRunSpecific + 488
    24  UIKit                               0x000000010baea7cd -[UIApplication _run] + 402
    25  UIKit                               0x000000010baef610 UIApplicationMain + 171
    26  EXTBP                               0x000000010af3853d main + 109
    27  libdyld.dylib                       0x000000010e45392d start + 1
    28  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

最佳答案

您需要修复 IB 中的 Outlet example

关于ios - 使用 firebase 设置用户登录,但在运行应用程序时收到 Sigabrt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36209044/

相关文章:

swift - 将复杂的 UIView 与 SwiftUI 集成失败时需要帮助

php - PEAR Auth 真的是 PHP 身份验证的可行选择吗?

ios - 通过脚本将图像添加到 Assets

ios - URLSession 不适用于 URLCredential

iphone - 在没有分发文件的情况下将 ipa 发送给测试人员(仅带有配置文件)

iphone - 在现有 TableView 上创建新行

swift - Swift2中的switch语句可以比较哪种类型的值

iOS 11 PDFKit - curl 过渡

ruby-on-rails - 使用 mongoid 和设计时成功登录后当前用户为零

PHP file_get_contents 在一台服务器上工作,但在上出现授权错误