【转】iOS10项目打包上传被拒关于隐私权限问题
原文网址:http://blog.csdn.net/yidu_blog/article/details/53064987
今天项目打包提交。收到了苹果的邮件。主要内容:
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothPeripheralUsageDescription 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 NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.
Once these issues have been corrected, you can then redeliver the corrected binary.
大概意思就是有需要设置的隐私权限没有设置
右击Info.plist文件 >Open As >Source Code 打开复制以下你在应用中使用的隐私权限设置(描述自己修改)
- <key>NSVideoSubscriberAccountUsageDescription</key>
- <string></string>
- <key>NSBluetoothPeripheralUsageDescription</key>
- <string>蓝牙权限</string>
- <key>NSSpeechRecognitionUsageDescription</key>
- <string>语音识别权限</string>
- <key>NSSiriUsageDescription</key>
- <string>Siri权限</string>
- <key>NSRemindersUsageDescription</key>
- <string></string>
- <key>NSPhotoLibraryUsageDescription</key>
- <string>相册权限</string>
- <key>kTCCServiceMediaLibrary</key>
- <string></string>
- <key>NSMotionUsageDescription</key>
- <string>运动权限</string>
- <key>NSMicrophoneUsageDescription</key>
- <string>麦克风权限</string>
- <key>NSAppleMusicUsageDescription</key>
- <string>音乐权限</string>
- <key>NSLocationWhenInUseUsageDescription</key>
- <string>地理位置权限</string>
- <key>NSLocationUsageDescription</key>
- <string>地理位置权限</string>
- <key>NSLocationAlwaysUsageDescription</key>
- <string>地理位置权限</string>
- <key>NSHomeKitUsageDescription</key>
- <string></string>
- <key>NSHealthUpdateUsageDescription</key>
- <string>健康权限</string>
- <key>NSHealthShareUsageDescription</key>
- <string>健康权限</string>
- <key>NSContactsUsageDescription</key>
- <string>通讯录权限</string>
- <key>NSCameraUsageDescription</key>
- <string>摄像头权限</string>
- <key>NSCalendarsUsageDescription</key>
- <string>日历权限</string>