ios10发布后需要补充的plist

如果你的app包含相机、相册等申请权限,那么现在提审后会说到警告邮件:

This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription 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 NSMicrophoneUsageDescription 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 NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

解法也很简单,在Info.plist中补充信息即可:

<key>NSCameraUsageDescription</key>
<string>亲,打开相机可以吗?</string>
<key>NSMicrophoneUsageDescription</key>
<string>亲,打开麦克风可以吗?</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>亲,打开相册可以吗?</string>

 

Leave a Reply

Your email address will not be published. Required fields are marked *