IOS 11升级之后,程序打包上传因为隐私权限被拒绝!!

升级IOS 11,上传打包好的程序,遇到一堆类似下面的问题:

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.


之前版本这些都是默认设置的,现在需要在info.plist中自己添加了!升级之后各种问题,有点无语!!


解决方法:

将下面代码拷到羡慕的inof.plist中:

    NSVideoSubscriberAccountUsageDescription
    
    NSBluetoothPeripheralUsageDescription
    蓝牙权限
    NSSpeechRecognitionUsageDescription
    语音识别权限
    NSSiriUsageDescription
    Siri权限
    NSRemindersUsageDescription
    
    NSPhotoLibraryUsageDescription
    相册权限
    kTCCServiceMediaLibrary
    
    NSMotionUsageDescription
    运动权限
    NSMicrophoneUsageDescription
    麦克风权限
    NSAppleMusicUsageDescription
    音乐权限
    NSLocationWhenInUseUsageDescription
    地理位置权限
    NSLocationUsageDescription
    地理位置权限
    NSLocationAlwaysUsageDescription
    地理位置权限
    NSHomeKitUsageDescription
    
    NSHealthUpdateUsageDescription
    健康权限
    NSHealthShareUsageDescription
    健康权限
    NSContactsUsageDescription
    通讯录权限
    NSCameraUsageDescription
    摄像头权限
    NSCalendarsUsageDescription
    日历权限



你可能感兴趣的:(IOS)