美文网首页
iOS 10权限配置问题

iOS 10权限配置问题

作者: JDL | 来源:发表于2016-09-18 14:31 被阅读0次

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:

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

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

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

// 相机

<key>NSCameraUsageDescription</key>

<string>App需要您的同意,才能访问相册</string>

// 相册

<key>NSPhotoLibraryUsageDescription</key>

<string>App需要您的同意,才能访问相机</string>

// 麦克风:

<key>NSMicrophoneUsageDescription</key>

<string>App需要您的同意,才能访问麦克风</string>

// 通信录

<key>NSContactsUsageDescription</key>

<string>App需要您的同意,才能访问通信录</string>

```

其它权限配置选项:

```

// 位置

<key>NSLocationUsageDescription</key>

<string>App需要您的同意,才能访问位置</string>

// 在使用期间访问位置

<key>NSLocationWhenInUseUsageDescription</key>

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

// 始终访问位置

<key>NSLocationAlwaysUsageDescription</key>

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

// 日历

<key>NSCalendarsUsageDescription</key>

<string>App需要您的同意,才能访问日历</string>

// 提醒事项

<key>NSRemindersUsageDescription</key>

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

// 运动与健身

<key>NSMotionUsageDescription</key>

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

// 健康更新

<key>NSHealthUpdateUsageDescription</key>

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

// 健康分享

<key>NSHealthShareUsageDescription</key>

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

// 蓝牙

<key>NSBluetoothPeripheralUsageDescription</key>

<string>App需要您的同意,才能访问蓝牙</string>

// 媒体资料库

<key>NSAppleMusicUsageDescription</key>

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

相关文章

网友评论

      本文标题:iOS 10权限配置问题

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