在申请非常多私有权力的时候都亟需加上描述金沙网址

方今交由《微打卡》到AppStore下的时候,出现以下提醒:

We have discovered one or more issues with your recent delivery for
“微打卡”. 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
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
NSMicrophoneUsageDescription 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.

出现那几个难题是因为iOS对顾客的云浮和隐私的升高,在申请非常多私有权力的时候都亟需加上描述,可是,在应用Xcode
8之前的Xcode仍然选拔系统的权能通告框.要想减轻那个主题素材,只要求在info.plist增添NSContactsUsageDescription的key,
value本身随便填写就足以,比如:

<!-- 相册 --> <key>NSPhotoLibraryUsageDescription</key> <string>App需要您的同意,才能访问相册</string> <!-- 相机 --> <key>NSCameraUsageDescription</key> <string>App需要您的同意,才能访问相机</string> <!-- 麦克风 --> <key>NSMicrophoneUsageDescription</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>

一旦不起功效,能够诉求后台权限,类似于如此:

<key>UIBackgroundModes</key><array> <!-- 在这里写上你在后台模式下要使用权限对应的key --> <string>location</string>...</array>

抑或在Xcode里选中当前的target,选取Capabilities,找到Background
Modes,展开它,在其间采用对应权限.

相关文章