This app has crashed because it attempted to access privacy-sensitive data without a usage descripti
来源:互联网 发布:什么叫手机网络病毒 编辑:程序博客网 时间:2024/05/20 01:34
运行时报错如下:
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
解决方法:在项目中找到info.plist文件,右击有个 Open As,以Source Code 的形式打开,如图
打开后添加权限代码就可以了,添加什么权限代码可查看报错日志,里面说缺少NSPhotoLibraryUsageDescription这个权限添加如下代码既可以了,以后此类问题都可以这样解决。
<key>NSPhotoLibraryUsageDescription</key>
<string>photoLibraryUsageDescription</string>
下面其他的部分权限代码。
<key>NSMicrophoneUsageDescription</key>
<string>microphoneDesciption</string>
<key>NSCameraUsageDescription</key>
<string>cameraDesciption</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>photoLibraryDesciption</string>
- This app has crashed because it attempted to access privacy-sensitive data without a usage descripti
- This app has crashed because it attempted to access privacy-sensitive data without a usage descripti
- This app has crashed because it attempted to access privacy-sensitive data without a usage descripti
- Xcode8使用出现This app has attempted to access privacy-sensitive data without a usage description.
- Xcode 8 it attempted to access privacy-sensitive data without a usage description
- This app attempts to access privacy-sensitive data without a usage description
- ios [access] This app has crashed because ……
- Android报错 Attempted to access a cursor after it has been closed.的解决方法
- android.database.StaleDataException: Attempted to access a cursor after it has b
- android.database.StaleDataException: Attempted to access a cursor after it has been closed
- Android选择图片报错Attempted to access a cursor after it has been closed.
- android.database.StaleDataException: Attempted to access a cursor after it has been clos
- android开发问题:Attempted to access a cursor after it has been closed.
- android.database.StaleDataException: Attempted to access a cursor after it has been closed
- Android读取相册时报错:Attempted to access a cursor after it has been closed.
- 异常:android.database.StaleDataException: Attempted to access a cursor after it has been closed
- android.database.StaleDataException: Attempted to access a cursor after it has been closed.
- Caused by: android.database.StaleDataException: Attempted to access a cursor after it has been close
- Python爬虫之Scrapy框架Windows环境安装
- hibernate二级缓存配置
- 页面优化
- 蓝桥杯 金明的预算方案
- calender类
- This app has crashed because it attempted to access privacy-sensitive data without a usage descripti
- 解决Qt中 GDB调试器已停止工作的问
- 强大的跨平台绘制流程图软件网站ProcessOn
- Ali 数加 - DataV
- 目前主流的服务器有哪些?软件和硬件?
- Struts UI表单常用标签
- c+中继承的使用
- adb shell提示device offline
- finally语句块的作用