When I receive the InterruptionBegan notification (the interruption type is AVAudioSessionInterruptionTypeBegan) , I pause playing music.
When I receive the InterruptionEnded notification (the interruption type is AVAudioSessionInterruptionTypeEnded), I resume playing music.
however, sometimes i has got the error code: AVAudioSessionErrorCodeCannotInterruptOthers (560557684)
If some malicious app to take up the audio, which leads to the third party app music playback recovery fails, an error AVAudioSessionErrorCodeCannotInterruptOthers.
In this case, can we know which apps are maliciously hogging the audio?
Post
Replies
Boosts
Views
Activity
XCode version: 15.0 beta 7
iOS version: iOS 13.3.1
Within the didFinishLaunchingWithOptions method call [MMKV initializeMMKV: nil]; The EXC_BAD_ACCESS problem occurred.
In line 73 of libMMKV.mm: g_lock = new mmkv::ThreadLock();
Any code that uses new to allocate space will crash.
This crash is inevitable in iOS 13.3.1.
log:
bt
thread Dev #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
frame #0: 0x0000000000000000
frame Dev #1: 0x000000010222b89c etest+[MMKV initializeMMKV:logLevel:handler:](self=MMKV, _cmd="initializeMMKV:logLevel:handler:", rootDir=0x0000000000000000, logLevel=MMKVLogInfo, handler=0x0000000000000000) at libMMKV.mm:78:14 frame #2: 0x000000010222b7c0 etest+[MMKV initializeMMKV:](self=MMKV, _cmd="initializeMMKV:", rootDir=0x0000000000000000) at libMMKV.mm:63:12
frame typo #3: 0x0000000102224b7c etest-[AppDelegate application:didFinishLaunchingWithOptions:](self=0x0000000283bc8da0, _cmd="application:didFinishLaunchingWithOptions:", application=0x0000000119f006c0, launchOptions=0x0000000000000000) at AppDelegate.m:29:5 frame #4: 0x000000019b607c18 UIKitCore + 344
With Xcode15, iOS11 devices crash during startup.
Error reported as follows:
dyld: could not load inserted library '/System/Library/PrivateFrameworks/GPUToolsCapture.framework/GPUToolsCapture' because image not found
ld: library '/Users/huangfeidi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A compilation error occurred after upgrading Xcode15
In contrast to Xcode14, Xcode15 does not have libarclite_iphoneos.a.
Do you have the same problem?
Where the following apis have been used, the operation has crashed
UIGraphicsBeginImageContext
UIGraphicsBeginImageContextWithOptions
UIGraphicsGetImageFromCurrentImageContext
UIGraphicsEndImageContext
The run crashed
Looking at the api documentation, it is recommended to use UIGraphicsImageRenderer instead.
But the project uses too many places, and is confused by the Xcode15beta forced run crashed