Xcode8,iOS10.0系统中,使用相机功能的时候报错 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 wi
Xcode8,iOS10.0系统中,使用相机功能的时候报错
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.
主要原因是iOS10之后,相册,位置,麦克风等这些需要权限验证的东西,都需要在plist文件里面添加响应的键值对。否则都会报错,使用Privacy开头的都需要添加到plist文件里面。
后面的字符串是授权时候回显示的字样
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!