信号1 SIGARBT崩溃(PlaySound?)

时间:2014-05-13 01:29:33

标签: ios objective-c unrecognized-selector

当我尝试按下按钮播放声音时,我开始收到此错误。我没有收到代码错误(红色或黄色标记)但是当我点击按钮时我的应用程序崩溃了。

这是控制台输出的内容:

2014-05-12 20:24:59.866 ReAct[4511:60b] -[ViewController PlayAudioBUtton:]: unrecognized selector sent to instance 0x9059280
2014-05-12 20:24:59.875 ReAct[4511:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ViewController PlayAudioBUtton:]: unrecognized selector sent to instance 0x9059280'
*** First throw call stack:
(
    0   CoreFoundation                      0x01c6c1e4 __exceptionPreprocess + 180
    1   libobjc.A.dylib                     0x019eb8e5 objc_exception_throw + 44
    2   CoreFoundation                      0x01d09243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
    3   CoreFoundation                      0x01c5c50b ___forwarding___ + 1019
    4   CoreFoundation                      0x01c5c0ee _CF_forwarding_prep_0 + 14
    5   libobjc.A.dylib                     0x019fd880 -[NSObject performSelector:withObject:withObject:] + 77
    6   UIKit                               0x006ad3b9 -[UIApplication sendAction:to:from:forEvent:] + 108
    7   UIKit                               0x006ad345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
    8   UIKit                               0x007aebd1 -[UIControl sendAction:to:forEvent:] + 66
    9   UIKit                               0x007aefc6 -[UIControl _sendActionsForEvents:withEvent:] + 577
    10  UIKit                               0x007ae243 -[UIControl touchesEnded:withEvent:] + 641
    11  UIKit                               0x006ecddd -[UIWindow _sendTouchesForEvent:] + 852
    12  UIKit                               0x006ed9d1 -[UIWindow sendEvent:] + 1117
    13  UIKit                               0x006bf5f2 -[UIApplication sendEvent:] + 242
    14  UIKit                               0x006a9353 _UIApplicationHandleEventQueue + 11455
    15  CoreFoundation                      0x01bf577f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
    16  CoreFoundation                      0x01bf510b __CFRunLoopDoSources0 + 235
    17  CoreFoundation                      0x01c121ae __CFRunLoopRun + 910
    18  CoreFoundation                      0x01c119d3 CFRunLoopRunSpecific + 467
    19  CoreFoundation                      0x01c117eb CFRunLoopRunInMode + 123
    20  GraphicsServices                    0x031ac5ee GSEventRunModal + 192
    21  GraphicsServices                    0x031ac42b GSEventRun + 104
    22  UIKit                               0x006abf9b UIApplicationMain + 1225
    23  ReAct                               0x000020cd main + 141
    24  libdyld.dylib                       0x02996701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

我认为这是由于第一次描述:

  

“因未捕获的异常而终止应用程序'NSInvalidArgumentException',原因:' - [ViewController PlayAudioBUtton:]:无法识别的选择器发送到实例0x9059280'”

但我不确定这意味着什么,因为我是Xcode和iOS编码的新手。

非常感谢任何帮助。

0 个答案:

没有答案