美文网首页
项目问题解决

项目问题解决

作者: zhaihongxia | 来源:发表于2017-09-19 16:35 被阅读0次

1.解决智温宝测温进入环信聊天室不能测温
//打开听筒
AVAudioSession *session = [AVAudioSession sharedInstance];
NSError *sessionError;
[session setCategory:AVAudioSessionCategoryPlayAndRecord error:&sessionError];

2.偶尔运行崩溃


屏幕快照 2018-04-17 上午11.41.18.png
2018-04-17 11:20:05.067379+0800 LekangYoujiao[443:54856] [aurioc] 918: failed: '!pla' (enable 3, outf< 2 ch,      0 Hz, Int8.24, non-inter> inf< 2 ch,      0 Hz, Int8.24, non-inter>)
Error: couldn't initialize the remote I/O unit ('!pla')
2018-04-17 11:20:11.614033+0800 LekangYoujiao[443:54856] [aurioc] 918: failed: '!pla' (enable 3, outf< 2 ch,      0 Hz, Int8.24, non-inter> inf< 2 ch,      0 Hz, Int8.24, non-inter>)

初步猜想:在后台激活了音频(iOS应用程序不允许从后台状态播放音频),待解决

3.家园导入VLC崩溃如下:


屏幕快照 2018-06-11 下午3.32.27.png

解决办法:Build Settings——搜索 Other Linker Flags 在此修改为-Objc(去掉:-all_load)


屏幕快照 2018-06-11 下午3.31.18.png

相关文章

网友评论

      本文标题:项目问题解决

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