IOS10 Expected App Behaviors, ios10behaviors
I encountered a problem when I mounted it to the appStore yesterday. The packages uploaded to itunesconnect after being built cannot be used,
The error message is: this build version is invalid.
Or display it in English as: ITC. apps. preReleaseBuild. errors. invalidBinary
Because the mailbox bound to the itunesconnect account cannot be entered for the time being, and the notification message sent by apple to our mailbox is not displayed, we only search in Du Niang: Some said
Network Problems, computer problems, icon problems, and Application Loader upload .....
But the problem was not solved after the test, and so many "invalid build version" appeared 』
I finally logged on to my mailbox and read the notification email sent by the apple team. It turned out to be the reason:
......
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.Regards,The App Store team
The configuration file info. plist of the app missing an app request for the configuration of the bluetooth device: nsbluw.thperipheralusagedescription
After adding the package and uploading it again, you can use it!
After checking the information, apple's Expected App Behaviors (Expected App behavior) after iOS10 paid more attention to user privacy, if you need to access your mobile phone's camera, multimedia, Bluetooth, Address Book, location, health, sports... you must ask the user for user authorization before using the service.
Official Instructions:
Https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ExpectedAppBehaviors/ExpectedAppBehaviors.html
When the project configuration file info. plist is added, the following message is displayed:
View the source code of info. plist as follows:
<Key> nsblustmthperipheralusagedescription </key> <string> whether to allow this App to access your Bluetooth </string> <key> NSCalendarsUsageDescription </key> <string> whether to allow this App to access you </string> <key> NSCameraUsageDescription </key> <string> whether to allow this App to use your camera </string> <key> NSContactsUsageDescription </key> <string> allow this App to access your address book </string> <key> nshealthpolicusagedescription </key> <string> whether to allow this App to access your health sharing </string> <key> NSHealthUpdateUsageDescription </key> <string> whether to allow this App to access your health update </string> <key> NSHomeKitUsageDescription </key> <string> whether to allow this App to access your HomeKit </string> <key> NSLocationAlwaysUsageDescription </key> <string> we need to use your geographic location information to obtain relevant data around you </string> <key> NSLocationWhenInUseUsageDescription </key> <string> your location information is used to display your location on the map, send it to contacts </string> <key> NSMicrophoneUsageDescription </key> <string> whether to allow this App to use your microphone </string> <key> NSMotionUsageDescription </key> <string> The App requires your consent, to access sports and fitness </string> <key> kTCCServiceMediaLibrary </key> <string> whether to allow this App to access your music </string> <key> NSPhotoLibraryUsageDescription </key> <string> whether to allow this App to access your media repository </string> <key> NSRemindersUsageDescription </key> <string> whether to allow this App to access your reminder </string> <key> NSSiriUsageDescription </key> <string> whether to allow this App to access your Siri </string> <key> NSSpeechRecognitionUsageDescription </key> <string> whether to allow this App to use you </string> <key> NSVideoSubscriberAccountUsageDescription </key> <string> whether to allow this App to access your TV supplier account </string>
Link: http://www.cnblogs.com/tandaxia/p/6207236.html