iOS 10权限配置问题

iOS10 出现了很多扯淡的事,刚刚提交ipa 到itunes content还显示正在处理过了一会再打开版本记录,刚才提交的ipa文件不见了。最后打开评估反馈的信息才知道

Dear developer,

We have discovered one or more issues with your recent delivery for “APP". To process your delivery, the following issues must be corrected:

This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCalendarsUsageDescription key with a string value explaining to the user how the app uses this data.

This app attempts 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.

Though you are not required to fix the following issues, we wanted to make you aware of them:

才知道没有添加相应配置权限

下面列一些常用的配置,这也是我从网上收集的

一些常用的权限配置选项:

// 相机

NSCameraUsageDescription

App需要您的同意,才能访问相册

// 相册

NSPhotoLibraryUsageDescription

App需要您的同意,才能访问相机

// 麦克风:

NSMicrophoneUsageDescription

App需要您的同意,才能访问麦克风

// 通信录

NSContactsUsageDescription

App需要您的同意,才能访问通信录

```

其它权限配置选项:

```

// 位置

NSLocationUsageDescription

App需要您的同意,才能访问位置

// 在使用期间访问位置

NSLocationWhenInUseUsageDescription

App需要您的同意,才能在使用期间访问位置

// 始终访问位置

NSLocationAlwaysUsageDescription

App需要您的同意,才能始终访问位置

// 日历

NSCalendarsUsageDescription

App需要您的同意,才能访问日历

// 提醒事项

NSRemindersUsageDescription

App需要您的同意,才能访问提醒事项

// 运动与健身

NSMotionUsageDescription

App需要您的同意,才能访问运动与健身

// 健康更新

NSHealthUpdateUsageDescription

App需要您的同意,才能访问健康更新

// 健康分享

NSHealthShareUsageDescription

App需要您的同意,才能访问健康分享

// 蓝牙

NSBluetoothPeripheralUsageDescription

App需要您的同意,才能访问蓝牙

// 媒体资料库

NSAppleMusicUsageDescription

App需要您的同意,才能访问媒体资料库

你可能感兴趣的:(iOS 10权限配置问题)