iOS10專案打包上傳被拒關於隱私許可權問題
阿新 • • 發佈:2019-01-01
今天專案打包提交。收到了蘋果的郵件。主要內容:
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>