简体   繁体   English

由于未捕获的异常“ NSInvalidArgumentException”而终止应用程序,原因:“-[SWRevealViewController manifestToggel:]

[英]Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SWRevealViewController revealToggel:]

I am following an Apple tutorial on creating an iOS Application using Swift [Developing iOS Apps (Swift)], and I have followed each step exactly as it is. 我正在关注有关使用Swift创建iOS应用程序的Apple教程[开发iOS应用程序(Swift)],并且按照原样执行了每个步骤。 This app has been running flawlessly in the Simulator, but suddenlly it started throwing a SIGABRT error (I made a short research to understand what a SIGABRT (Signal Abort) error is, and I've even found some other answers, but no one seems to fix my problem). 该应用程序已在模拟器中完美运行,但突然开始引发SIGABRT错误(我进行了简短的研究以了解SIGABRT(信号中止)错误是什么,我什至还找到了其他答案,但似乎没有人找到答案解决我的问题)。

Console Output: 控制台输出:

2017-10-25 02:00:23.553 myApplication[1358:48276] -[SWRevealViewController revealToggel:]: unrecognized selector sent to instance 0x7ff74c813400
2017-10-25 02:00:23.824 myApplication[1358:48276] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SWRevealViewController revealToggel:]: unrecognized selector sent to instance 0x7ff74c813400'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010a39ae65 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x0000000109e11deb objc_exception_throw + 48
    2   CoreFoundation                      0x000000010a3a348d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3   CoreFoundation                      0x000000010a2f090a ___forwarding___ + 970
    4   CoreFoundation                      0x000000010a2f04b8 _CF_forwarding_prep_0 + 120
    5   UIKit                               0x000000010a973194 -[UIApplication sendAction:to:from:forEvent:] + 92
    6   UIKit                               0x000000010ad747b7 -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 152
    7   UIKit                               0x000000010a973194 -[UIApplication sendAction:to:from:forEvent:] + 92
    8   UIKit                               0x000000010aae26fc -[UIControl sendAction:to:forEvent:] + 67
    9   UIKit                               0x000000010aae29c8 -[UIControl _sendActionsForEvents:withEvent:] + 311
    10  UIKit                               0x000000010aae2b43 -[UIControl _sendActionsForEvents:withEvent:] + 690
    11  UIKit                               0x000000010aae1af8 -[UIControl touchesEnded:withEvent:] + 601
    12  UIKit                               0x000000010a9e249b -[UIWindow _sendTouchesForEvent:] + 835
    13  UIKit                               0x000000010a9e31d0 -[UIWindow sendEvent:] + 865
    14  UIKit                               0x000000010a991b66 -[UIApplication sendEvent:] + 263
    15  UIKit                               0x000000010a96bd97 _UIApplicationHandleEventQueue + 6844
    16  CoreFoundation                      0x000000010a2c6a31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    17  CoreFoundation                      0x000000010a2bc95c __CFRunLoopDoSources0 + 556
    18  CoreFoundation                      0x000000010a2bbe13 __CFRunLoopRun + 867
    19  CoreFoundation                      0x000000010a2bb828 CFRunLoopRunSpecific + 488
    20  GraphicsServices                    0x000000010f092ad2 GSEventRunModal + 161
    21  UIKit                               0x000000010a971610 UIApplicationMain + 171
    22  myApplication                       0x00000001098f224d main + 109
    23  libdyld.dylib                       0x000000010d2c392d start + 1
    24  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Typo? 错别字? Should be revealToggle ... 应该被revealToggle ...

I think you misspelled revealToggel: . 我认为您拼写了revealToggel: It should be revealToggle: . 应该显示为revealToggle:

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 由于未捕获的异常“ NSInvalidArgumentException”而终止应用程序,原因:“-[FBSDKProfilePictureView CGImage]: - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FBSDKProfilePictureView CGImage]: 由于未捕获的异常“ NSInvalidArgumentException”而终止应用程序,原因:“-[MKUserLocation标记]: - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MKUserLocation tag]: 由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:' - [UIButton setText:] - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIButton setText:] 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[__NSCFString isDescendantOfView:]: - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString isDescendantOfView:]: 由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:未知的布局属性' - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: Unknown layout attribute' 由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:NSArrayM objectForKey - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: NSArrayM objectForKey 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[__NSCFBoolean length] - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFBoolean length] 由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:' - [Home isEqualToString:] - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Home isEqualToString:] 由于未捕获的异常“ NSInvalidArgumentException”而终止应用程序,原因:“-[NSDecimalNumber长度]: - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSDecimalNumber length]: 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[FBSDKApplicationDelegate initializeSDK] - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FBSDKApplicationDelegate initializeSDK]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM