iOS 10必须在info.plist中添加权限,只需查看此博客即可:-settings -in-ios-10,您会明白的。
根据您的错误日志在info.plist文件中添加权限。
注意:在字符串值中写出允许的正确原因,否则Apple会再次拒绝应用程序。
NSCameraUsageDescription
<key>NSCameraUsageDescription</key>
<string>You have to describe the real usage for a human.</string>
NSContacts用法说明
<key>NSContactsUsageDescription</key>
<string>You have to describe the real usage for a human.</string>
NSPhotoLibrary使用说明
<key>NSPhotoLibraryUsageDescription</key>
<string>You have to describe the real usage for a human.</string>
NS蓝牙外围设备使用说明
<key>NSBluetoothPeripheralUsageDescription</key>
<string>You have to describe the real usage for a human.</string>
NSMicrophone使用说明
<key>NSMicrophoneUsageDescription</key>
<string>You have to describe the real usage for a human.</string>
NSMotion用法说明
<key>NSMotionUsageDescription</key>
<string>$(PRODUCT_NAME) motion use.</string>
NSLocationAlwaysUsageDescription
<key>NSLocationAlwaysUsageDescription</key>
<string>You have to describe the real usage for a human.</string>
NSLocationUsageDescription
<key>NSLocationUsageDescription</key>
<string>You have to describe the real usage for a human.</string>
NSLocationWhenInUseUsesDescription
<key>NSLocationWhenInUseUsageDescription</key>
<string>You have to describe the real usage for a human.</string>
NSReminders用法说明
<key>NSRemindersUsageDescription</key>
<string>You have to describe the real usage for a human.</string>
NSSiri用法说明
<key>NSSiriUsageDescription</key>
<string>You have to describe the real usage for a human.</string>
NSVideoSubscriberAccountUsageDescription
<key>NSVideoSubscriberAccountUsageDescription</key>
<string>You have to describe the real usage for a human.</string>
NSSpeechRecognition用法说明
<key>NSSpeechRecognitionUsageDescription</key>
<string>You have to describe the real usage for a human.</string>
NSCalendars用法说明
<key>NSCalendarsUsageDescription</key>
<string>You have to describe the real usage for a human.</string>