Yesterday on the shelves to AppStore encountered a problem, after the build and upload to the Itunesconnect package are not used,
The error shown is: This build is not valid.
or the English display as: ITC.apps.preReleaseBuild.errors.invalidBinary
Because and Itunesconnect account bound mailbox temporarily into not go, did not see Apple sent to our mailbox notification information, so only in the degree Niang search: some say
Is the network problem, has said is the computer question, has said is the icon question, has said uses application loader uploads.
But the trial didn't solve the problem, and then there were so many "this build is not valid"
After finally signed in to the mailbox, to see the Apple over the team sent over the notification email, the original 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 and the app uses this data. Once These issues has been corrected, you can then redeliver the corrected binary. Regards,the App Store Team
It means that the app configuration file info.plist less an app request configuration using device Bluetooth: nsbluetoothperipheralusagedescription
Then add and then pack and upload again to use!
Checked the information, Apple from IOS10, expected app behaviors (expected application behavior), for the user's privacy more attention, if need to access the user's phone camera, multimedia, Bluetooth, Contacts, location, health, sports ... And so on, you must ask the user for permission to use.
Official Description Link:
https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ Expectedappbehaviors/expectedappbehaviors.html
The Project Engineering profile Info.plist is automatically prompted when it is added, as follows:
To view the source code for Info.plist, expand as follows:
<key>NSBluetoothPeripheralUsageDescription</key> <string> Whether to allow this app to access your Bluetooth </string> <key>NSCalendarsUsageDescription</key> <string> Whether to allow this app to access your calendar </string> <key>NSCameraUsageDescription</key> <string> Whether to allow this app to use your camera </string> <key>NSContactsUsageDescription</key> <string> Whether to allow this app to access your contacts </string> <key>NSHealthShareUsageDescription</key> <string> Whether to allow this app to access your health sharing </string> <key>NSHealthUpdateUsageDescription</key> <string> Whether this app is allowed 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 get relevant data about you through your geo-location information </string> <key>NSLocationWhenInUseUsageDescription</key> <string> Your location information will be used to display your location on the map and send it to the contact </string> <key>NSMicrophoneUsageDescription</key> <string> Whether to allow this app to use your microphone </string> <key>NSMotionUsageDescription</key> <string>app need your consent in order 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 library </string> <key>NSRemindersUsageDescription</key> <string> Whether to allow this app to access your reminders </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 your speech recognition </string> <key>NSVideoSubscriberAccountUsageDescription</key> <string> Whether this app is allowed to access your TV vendor account </string>
Original link: http://www.cnblogs.com/tandaxia/p/6207236.html
IOS10 's expected App behaviors