美文网首页工作生活
AVAudioPlayer 初始化崩溃!

AVAudioPlayer 初始化崩溃!

作者: 豪冷 | 来源:发表于2019-07-02 12:29 被阅读0次

上图:

这里写图片描述

原因:使用了全局断点!

这里写图片描述
The problem was I normally develop with a breakpoint set to "All Exceptions", and the actual exception thrown was cxa throw. Which apparently turns out to be in C++ libraries that are used to implement AVAudioPlayer. By changing the breakpoint to "All Objective-C Exceptions" the program ran fine. (This can be done by editing the breakpoint and changing the Exception field to Objective-C. 这里写图片描述
这里写图片描述

参考:

https://www.jianshu.com/p/08d436559342

相关文章

网友评论

    本文标题:AVAudioPlayer 初始化崩溃!

    本文链接:https://www.haomeiwen.com/subject/kddzcctx.html