美文网首页iOS开发
Xcode8隐私配置源代码

Xcode8隐私配置源代码

作者: kevin888800 | 来源:发表于2016-11-01 15:01 被阅读0次

Xcode8以后,我们必须在工程的plist文件中配置隐私权限,当然,我们根据App中的使用情况可以有很多种隐私配置方案,但是, 为了减少提交审核不成功的可能性,我建议将这8项全部都加进plist文件中:

我们可以在右击Info.plist文件以源代码方式打开,将以下代码粘贴到字典最外一层即可:

<key>NSBluetoothPeripheralUsageDescription</key>

<string>请允此App使用蓝牙功能</string>

<key>NSCalendarsUsageDescription</key>

<string>请允许此App使用日历</string>

<key>NSCameraUsageDescription</key>

<string>请允许此App使用您的相机功能</string>

<key>NSContactsUsageDescription</key>

<string>请允许此App访问您的通讯录</string>

<key>NSLocationAlwaysUsageDescription</key>

<string>请允许此App获取您的位置信息</string>

<key>NSLocationWhenInUseUsageDescription</key>

<string>请允许此App获取您的位置信息</string>

<key>NSMicrophoneUsageDescription</key>

<string>请允许此App使用您的麦克风</string>

<key>NSPhotoLibraryUsageDescription</key>

<string>请允许此App访问您的图库</string>

相关文章

网友评论

    本文标题:Xcode8隐私配置源代码

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