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
1.1k
May ’24
Xcode16 beta4 build error
Xcode15 has been normal, upgrade Xcode16 beta4 compiler error, error message as follows Can't the parameter of the method be named with module? I tried to change it to module1 and it will compile successfully. This makes me feel unreasonable, why such a compilation error
2
0
659
Aug ’24
Xcode16 openURL is invalid
Xcode version: Xcode16 beta6 iOS version:iOS18 beta7 The openURL method call to UIApplication is invalid Moreover, the project has a lot of logic dependent on the return value of this method, which is very troublesome to modify Look at the Apple documentation, and say that the problem is fixed, how should I deal with this situation
1
0
1.9k
Aug ’24
Xcode16 beta4 build error-"_mh_execute_header"
Upgrade Xcode16 beta4 compiler error, error message as follows Undefined symbols for architecture arm64: "__mh_execute_header", referenced from: -exported_symbol[s_list] command line option ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) But the interesting thing is that I used Debug mode and it compiled successfully.This error is reported using the Release mode. I searched for the keyword "_mh_execute_header" in the project and found nothing useful. Now I am very confused how to solve this error.
3
1
1.8k
Aug ’24
Xcode16 beta4 run crash
Xcode15 has been running normally, upgrade to Xcode16 beta4, running crash, crash code is as follows: What am I supposed to do to fix this. Can't my property be named maskView in Xcode16 beta4?
Topic: UI Frameworks SubTopic: UIKit Tags:
0
2
588
Aug ’24
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
942
Jul ’23