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 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.


This app has crashed because it attempted to access privacy-sensitive data without a usage descripti_第1张图片

打开后添加权限代码就可以了,添加什么权限代码可查看报错日志,里面说缺少NSPhotoLibraryUsageDescription这个权限添加如下代码既可以了,以后此类问题都可以这样解决。NSPhotoLibraryUsageDescriptionphotoLibraryUsageDescription下面其他的部分权限代码。NSMicrophoneUsageDescriptionmicrophoneDesciptionNSCameraUsageDescriptioncameraDesciptionNSPhotoLibraryUsageDescriptionphotoLibraryDesciption







This app has crashed because it attempted to access privacy-sensitive data without a usage descripti_第2张图片

你可能感兴趣的:(This app has crashed because it attempted to access privacy-sensitive data without a usage descripti)