美文网首页
NSPhotoLibraryAddUsageDescriptio

NSPhotoLibraryAddUsageDescriptio

作者: chaomeiWang | 来源:发表于2018-03-13 13:53 被阅读0次

    问题: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,我写的是"请求添加照片到相册的权限,用于存储照片"

    相关文章

      网友评论

          本文标题:NSPhotoLibraryAddUsageDescriptio

          本文链接:https://www.haomeiwen.com/subject/yilzfftx.html