Post

Replies

Boosts

Views

Activity

AVAudioSessionErrorCodeCannotInterruptOthers
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?
2
0
743
May ’24
app crashes runing in Xcode15 beta7
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
5
0
2.2k
Aug ’23
Xcode15 clang: error: linker command failed with exit code 1 (use -v to see invocation)
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?
1
1
810
Jun ’23
Running in Xcode15beta crashed
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
3
0
2.6k
Jun ’23