简体   繁体   English

反应原生相机| ios10 - 应用程序崩溃时 <Camera/> 被渲染

[英]react-native-camera | ios10 - app crash when <Camera/> is rendered

i have a problem with app. 我有app的问题。 problem does not appear in ios < 10. very similar to existing issue on github : https://github.com/lwansbrough/react-native-camera/issues/386 . 问题没有出现在ios <10中。非常类似于github上的现有问题: https//github.com/lwansbrough/react-native-camera/issues/386

steps taken: descriptions of mic, camera are filled 采取的步骤:填充麦克风,相机的描述

xcode shows this on very end: xcode在最后显示:

[self.session commitConfiguration]; [self.session commitConfiguration]; Thread 1: EXC_BAD_ACCESS (code=1, address=0x50) 线程1:EXC_BAD_ACCESS(代码= 1,地址= 0x50)

any help or hints ? 任何帮助或提示?

react-native 0.36, react-native-camera 0.38 反应原生0.36,反应原生相机0.38

Not sure if this will help but I had this same issue using ios 10 不确定这是否会有所帮助,但我使用ios 10时遇到了同样的问题

I had to delete my reference to react native camera and npm using this: 我不得不删除我的引用反应原生相机和npm使用这个:

npm i react-native-camera@next --save

This seemed to clear it up after including it in xcode library and linking in binary under project build phase. 在将其包含在xcode库中并在项目构建阶段以二进制形式链接之后,这似乎可以清除它。 Hope this works for you 希望这对你有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM