Dean Dean - 1 month ago 14
iOS Question

After submitted the app, I got this email. What should I do?


We have discovered one or more issues with your recent delivery for
"Myapp". To process your delivery, the following issues must be
corrected:

This app attempts to access privacy-sensitive data without a usage
description. The app's
Info.plist
must contain an
NSCalendarsUsageDescription
key with a string value explaining to the
user how the app uses this data.

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.

Once these issues have been corrected, you can then redeliver the
corrected binary.

Answer

As per the Docs

Maintaining user privacy is an important consideration when designing your app. Most iOS, watchOS, and tvOS devices contain data that users might not want to expose to apps or external entities. Access user data only with the user’s informed consent, and be transparent about how you use it.

Your app is responsible for all usage of privacy-sensitive data, including access to this data by all third party libraries used in your app. If your app attempts to access privacy-sensitive data without a usage description, your app will exit. Additionally, App Review checks for use of privacy-sensitive data, and rejects apps that request access to this data without a usage description. Listing 1 shows an example of such a rejection.

In order to resolve this you have to mention the usage description of this 2 in your .plist

NSBluetoothPeripheralUsageDescription 
NSCalendarsUsageDescription

like this

<key>NSCalendarsUsageDescription</key>
<string>This app wants to access Calendar</string>

Check image for reference

reference