iOS10 新增privacy-settings

2022-01-20 21:39:12 浏览数 (2)

iOS10添加了新的权限控制范围 如果你尝试访问这些隐私数据时得到如下错误:

This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data

因为它企图访问敏感数据时没有在应用程序的Info.plist设置privacy key

新增的privacy setting如下:

0 人点赞