iOS10 出現(xiàn)了很多扯淡的事,剛剛提交ipa 到itunes content還顯示正在處理過(guò)了一會(huì)再打開(kāi)版本記錄,剛才提交的ipa文件不見(jiàn)了。最后打開(kāi)評(píng)估反饋的信息才知道
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:
才知道沒(méi)有添加相應(yīng)配置權(quán)限
下面列一些常用的配置,這也是我從網(wǎng)上收集的
一些常用的權(quán)限配置選項(xiàng):
// 相機(jī)
<key>NSCameraUsageDescription</key>
<string>App需要您的同意,才能訪(fǎng)問(wèn)相冊(cè)</string>
// 相冊(cè)
<key>NSPhotoLibraryUsageDescription</key>
<string>App需要您的同意,才能訪(fǎng)問(wèn)相機(jī)</string>
// 麥克風(fēng):
<key>NSMicrophoneUsageDescription</key>
<string>App需要您的同意,才能訪(fǎng)問(wèn)麥克風(fēng)</string>
// 通信錄
<key>NSContactsUsageDescription</key>
<string>App需要您的同意,才能訪(fǎng)問(wèn)通信錄</string>
```
其它權(quán)限配置選項(xiàng):
```
// 位置
<key>NSLocationUsageDescription</key>
<string>App需要您的同意,才能訪(fǎng)問(wèn)位置</string>
// 在使用期間訪(fǎng)問(wèn)位置
<key>NSLocationWhenInUseUsageDescription</key>
<string>App需要您的同意,才能在使用期間訪(fǎng)問(wèn)位置</string>
// 始終訪(fǎng)問(wèn)位置
<key>NSLocationAlwaysUsageDescription</key>
<string>App需要您的同意,才能始終訪(fǎng)問(wèn)位置</string>
// 日歷
<key>NSCalendarsUsageDescription</key>
<string>App需要您的同意,才能訪(fǎng)問(wèn)日歷</string>
// 提醒事項(xiàng)
<key>NSRemindersUsageDescription</key>
<string>App需要您的同意,才能訪(fǎng)問(wèn)提醒事項(xiàng)</string>
// 運(yùn)動(dòng)與健身
<key>NSMotionUsageDescription</key>
<string>App需要您的同意,才能訪(fǎng)問(wèn)運(yùn)動(dòng)與健身</string>
// 健康更新
<key>NSHealthUpdateUsageDescription</key>
<string>App需要您的同意,才能訪(fǎng)問(wèn)健康更新</string>
// 健康分享
<key>NSHealthShareUsageDescription</key>
<string>App需要您的同意,才能訪(fǎng)問(wèn)健康分享</string>
// 藍(lán)牙
<key>NSBluetoothPeripheralUsageDescription</key>
<string>App需要您的同意,才能訪(fǎng)問(wèn)藍(lán)牙</string>
// 媒體資料庫(kù)
<key>NSAppleMusicUsageDescription</key>
<string>App需要您的同意,才能訪(fǎng)問(wèn)媒體資料庫(kù)</string>