SoFunction
Updated on 2025-04-12

Detailed explanation of the relevant permission settings for iOS10

In the latest version of iOS10 system, if your project has accessed privacy data, such as: camera, photo album, recording, location, contacts, etc. It involves permission issues.

Solution (fix method):

Add in —Source Code

For keys related to UsageDescription, you can fill in the description string at will, but you must fill it in, otherwise it will cause the problem of invalid packages, resulting in the build version not being displayed after uploading and packaging.

<!-- Photo Album --> 
<key>NSPhotoLibraryUsageDescription</key> 
<string>AppNeed your consent,才能访问Photo Album</string> 
<!-- camera --> 
<key>NSCameraUsageDescription</key> 
<string>AppNeed your consent,才能访问camera</string> 
<!-- microphone --> 
<key>NSMicrophoneUsageDescription</key> 
<string>AppNeed your consent,才能访问microphone</string> 
<!-- Location --> 
<key>NSLocationUsageDescription</key> 
<string>AppNeed your consent,才能访问Location</string> 
<!-- 在使用期间访问Location --> 
<key>NSLocationWhenInUseUsageDescription</key> 
<string>AppNeed your consent,才能在使用期间访问Location</string> 
<!-- 始终访问Location --> 
<key>NSLocationAlwaysUsageDescription</key> 
<string>AppNeed your consent,才能始终访问Location</string> 
<!-- calendar --> 
<key>NSCalendarsUsageDescription</key> 
<string>AppNeed your consent,才能访问calendar</string> 
<!-- Reminders --> 
<key>NSRemindersUsageDescription</key> 
<string>AppNeed your consent,才能访问Reminders</string> 
<!-- Exercise and fitness --> 
<key>NSMotionUsageDescription</key> <string>AppNeed your consent,才能访问Exercise and fitness</string> 
<!-- Health update --> 
<key>NSHealthUpdateUsageDescription</key> 
<string>AppNeed your consent,才能访问Health update </string> 
<!-- Health sharing --> 
<key>NSHealthShareUsageDescription</key> 
<string>AppNeed your consent,才能访问Health sharing</string> 
<!-- Bluetooth --> 
<key>NSBluetoothPeripheralUsageDescription</key> 
<string>AppNeed your consent,才能访问Bluetooth</string> 
<!-- Media Database --> 
<key>NSAppleMusicUsageDescription</key> 
<string>AppNeed your consent,才能访问Media Database</string>

If it does not work, you can request background permissions, similar to this:

<key>UIBackgroundModes</key>
<array> 
<!-- Write here the corresponding permissions you want to use in background modekey --> 
<string>location</string>
...
</array>

The above is all the content of this article. I hope it will be helpful to everyone's study and I hope everyone will support me more.