iOS | 新App当中必须要在info.plist文件中添加描述

在 App 打包上传 App Store Connect 的时候,一定要提前在项目的 info.plist 文件中添加需要访问用户相册、媒体库的权限描述。否则上传的包会被拒绝上传到 App Store Connect 上,可以查看开发者账号的邮箱文件。

Dear Developer,

We identified one or more issues with a recent delivery for your app, "XXXXX". Please correct the following issues, then upload again.

Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSPhotoLibraryUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data will be required to include a purpose string. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy).

Best regards,

The App Store Team

在项目的 info.plist 文件中添加下面的描述说明

    NSAppleMusicUsageDescription
    “XXXXX”想访问您的多媒体库
    NSCameraUsageDescription
    “XXXXX”想访问您的相机
    NSPhotoLibraryAddUsageDescription
    “XXXXX”想访问您的相册
    NSPhotoLibraryUsageDescription
    “XXXXX”想访问您的相册

你可能感兴趣的:(iOS | 新App当中必须要在info.plist文件中添加描述)