添加字段
苹果更加重视用户隐私,很多场景下需要在Info.plist
中添加相应的隐私权限字段:
<key>NSFileProviderDomainUsageDescription</key>
<string>是否允许App访问文件提供域?</string>
<key>NSAppleEventsUsageDescription</key>
<string>是否允许App发送苹果事件?</string>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>是否允许App始终开启蓝牙?</string>
<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>NSDesktopFolderUsageDescription</key>
<string>是否允许App使用桌面文件夹?</string>
<key>NSDocumentsFolderUsageDescription</key>
<string>是否允许App使用文档文件夹?</string>
<key>NSDownloadsFolderUsageDescription</key>
<string>是否允许App使用下载文件夹?</string>
<key>OSBundleUsageDescription</key>
<string>是否允许App使用驱动扩展?</string>
<key>NSFaceIDUsageDescription</key>
<string>是否允许App使用人脸识别?</string>
<key>NSFileProviderPresenceUsageDescription</key>
<string>是否允许App在使用期间访问文件?</string>
<key>NSHealthClinicalHealthRecordsShareUsageDescription</key>
<string>是否允许App使用健康记录?</string>
<key>NSHealthShareUsageDescription</key>
<string>是否允许App使用健康分享?</string>
<key>NSHealthUpdateUsageDescription</key>
<string>是否允许App使用健康更新?</string>
<key>NSHomeKitUsageDescription</key>
<string>是否允许App使用家庭套件?</string>
<key>NSLocalNetworkUsageDescription</key>
<string>是否允许App使用本地网络?</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>是否允许App始终访问你的位置?</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>是否允许App始终访问你的位置?</string>
<key>NSLocationDefaultAccuracyReduced</key>
<string>是否允许App使用你的非精确位置?</string>
<key>NSLocationTemporaryUsageDescriptionDictionary</key>
<dict>
<key>WantsToNavigate</key>
<string>Your precise location will be used to calculate a route and allow you to use turn-by-turn directions.</string>
<key>TaclFeature</key>
<string>Your precise location will be used to deliver tacos to you.</string>
</dict>
<key>NSLocationUsageDescription</key>
<string>是否允许App使用定位?</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>是否允许App在使用期间访问你的位置?</string>
<key>NSAppleMusicUsageDescription</key>
<string>是否允许App使用媒体库?</string>
<key>NSMicrophoneUsageDescription</key>
<string>是否允许App使用麦克风?</string>
<key>NSMotionUsageDescription</key>
<string>是否允许App方位运动与健身?</string>
<key>kTCCServiceMediaLibrary</key>
<string>是否允许App使用音乐?</string>
<key>NSNetworkVolumesUsageDescription</key>
<string>是否允许App使用网络存储设备?</string>
<key>NFCReaderUsageDescription</key>
<string>是否允许App使用NFC?</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>是否允许App向相册添加文件?</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>是否允许App读取相册中的文件?</string>
<key>NSRemindersUsageDescription</key>
<string>是否允许App使用提醒事项?</string>
<key>NSRemovableVolumesUsageDescription</key>
<string>是否允许App使用移动存储设备?</string>
<key>NSSiriUsageDescription</key>
<string>是否允许App使用Siri?</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>是否允许App使用语音识别?</string>
<key>NSSystemAdministrationUsageDescription</key>
<string>是否允许App使用系统管理?</string>
<key>NSSystemExtensionUsageDescription</key>
<string>是否允许App使用系统扩展?</string>
<key>NSVideoSubscriberAccountUsageDescription</key>
<string>是否允许App使用电视供应商权限/使用视频用户账号?</string>
网友评论