PhoneGap missing plist.key

后端 未结 6 822
一向
一向 2021-02-09 03:02

When I try and load upload my iTunes app installer to iTunes I relieve this error:

Missing Info.plist key - This app attempts to access privacy-sensitive

6条回答
  •  梦毁少年i
    2021-02-09 04:02

    Before you access privacy-sensitive data like Camera, Contacts, and so on, you must ask for the authorization, your app will crash when you access them.Then Xcode will log like:

    This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSContactsUsageDescription key with a string value explaining to the user how the app uses this data.

    How to deal with this? As apple say:

    You must statically declare your app’s intended use of protected data classes by including the appropriate purpose string keys in your Info.plist file.

    In your case you may have to add the following in your info.plist,

    热议问题