NSPhotoLibraryAddUsageDescription|NSPhotoLibraryAddUsageDescription 报错解决
【NSPhotoLibraryAddUsageDescription|NSPhotoLibraryAddUsageDescription 报错解决】问题:app拍照后有个保存照片在相册功能,然后拍照后报错:This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryAddUsageDescription key with a string value explaining to the user how the app uses this data.
解决:打开Info.plist文件,复制NSPhotoLibraryAddUsageDescription新建一条粘贴进去,然后写一句合适的description,我写的是"请求添加照片到相册的权限,用于存储照片"