The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data

后端 未结 6 1513
南笙
南笙 2020-12-15 02:38

Got a build rejection The app\'s Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app

6条回答
  •  Happy的楠姐
    2020-12-15 03:02

    For the lazy:

    if you want to quickly add usageDescriptions for most media access (on-device photos, camera, video recording, location):

    right click your info.plist file and -> open as -> Source Code

    then paste the following between the current values:

    NSMicrophoneUsageDescription
    Need microphone access for uploading videos
    NSCameraUsageDescription
    Need camera access for uploading images
    NSLocationUsageDescription
    Need location access for updating nearby friends
    NSLocationWhenInUseUsageDescription
    This app will use your location to show cool stuffs near you.
    NSPhotoLibraryUsageDescription
    Need photo library access for uploading images
    

    These descriptions, of course, are up to you. I tried to make them as generic as possible.

    Hope this saves someone's time!

提交回复
热议问题