2016-11-19 7 views
1

Die neue Version Absturz hat eine große Anzahl von Abstürzen auf iOS 10.iOS 10 [AVAudioSession privateInterruptionWithInfo:]

Die Nachricht

SEGV_ACCERR

libobjc.A.dylib objc_msgSend

ist

Es gibt zwei Arten von Abstürzen.

1:

libobjc.A.dylib objc_msgSend + 16 
AVFAudio -[AVAudioSession privateInterruptionWithInfo:] + 172 
AVFAudio (anonymous namespace)::HandlePropertyListenerCallback(unsigned int, objc_selector*, NSObject*) + 92 
libdispatch.dylib __dispatch_call_block_and_release + 24 
libdispatch.dylib __dispatch_client_callout + 16 
libdispatch.dylib _dispatch_main_queue_callback_4CF + 1000 
CoreFoundation ___CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 
CoreFoundation ___CFRunLoopRun + 1660 
CoreFoundation CFRunLoopRunSpecific + 444 
GraphicsServices GSEventRunModal + 180 
UIKit -[UIApplication _run] + 684 
UIKit UIApplicationMain + 208 
MyApplication main (main.m:16) 
libdyld.dylib _start + 4 

2:

libobjc.A.dylib objc_msgSend + 28 
libAVFAudio.dylib -[AVAudioSession privateBeginInterruption] + 60 
Foundation ___NSThreadPerformPerform + 340 
CoreFoundation ___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 
CoreFoundation ___CFRunLoopDoSources0 + 412 
CoreFoundation ___CFRunLoopRun + 724 
CoreFoundation CFRunLoopRunSpecific + 384 
GraphicsServices GSEventRunModal + 180 
UIKit UIApplicationMain + 204 
MyApplication main (main.m:16) 
libdyld.dylib _start + 4 

Wie löse ich dieses Problem?

Antwort

0

Die Eigenschaft delegate ist in AVAudioSession veraltet und wird durch eine Benachrichtigung AVAudioSessionInterruptionNotification ersetzt. Verwenden Sie stattdessen das Delegate-Eigenschaftsregister für diese Benachrichtigung. Bild zeigt das gleiche von Header AVAudioSession.h -

AVAudioSession_Deprecated_Delegate_Property_iOS_10_