iOS10相册相机闪退bug
2016-10-24 11:19
441 查看
iOS10系统下调用系统相册、相机功能,遇到闪退的情况,描述如下:
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文件下添加
相机权限
<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 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文件下添加
相机权限
<key>NSCameraUsageDescription</key>
<string>cameraDesciption</string>
相册权限
<key>NSPhotoLibraryUsageDescription</key>
<string>photoLibraryDesciption</string>
相关文章推荐
- iOS10相册相机闪退bug
- iOS10相册相机闪退bug
- iOS10 模拟器使用相机和相册闪退bug
- iOS10相册相机闪退bug
- IOS10 相册相机闪退bug解决办法
- iOS10相册相机闪退bug
- iOS10相册相机闪退bug
- iOS开发-解决iOS10相册相机闪退
- iOS 10 相册相机闪退bug
- ios10 相册相机闪退
- iOS10 相册、相机闪退解决方法
- 升级iOS10后访问相机、相册、麦克风、通讯录闪退
- iOS10适配 完美解决相机、相册等权限的使用
- iOS10新特性之相册闪退
- iOS10 相机相册等权限的使用、检测并引导用户开启权限
- iOS10 相机相册等权限的使用、检测并引导用户开启权限
- iOS中 iOS10 调用相机相册等权限崩溃问题
- iOS10 访问相册,相机或者联系人 Crash 的解决方法
- Android选择头像(从相机-相册-截图获取),以及闪退的解决
- iOS中 iOS10 相机相册等权限崩溃问题