解决关于ios访问相机闪退问题

时间:2017-08-10 19:05:09   收藏:0   阅读:312

在mac上的ionic3项目打包成苹果app,系统版本是10.3.3 .

当调用相机的时候出现闪退情况,这是调试出现的问题:

This app has crashed because it attempted to access privacy-sensitive data without a usage description.  The app‘s Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

解决方案:

使用xcode 打开xxx.pbxproj

打开Info.plist直接添加

技术分享

 

或者直接添加

技术分享

 

<key>NSCameraUsageDescription</key>
<string>cameraDesciption</string>

加上上面这个 就不会出现app在调用相机的时候出现崩溃的问题了。

原文:http://www.cnblogs.com/huangenai/p/7340623.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!