iOS发布后,应用中获取相册权限应用崩溃crash
log如下:
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: Privacy - Photo Library Usage Description
后边的内容填写友好提示,如:请同意获取您的多媒体资料等