IOS10, Apple has enhanced the protection of user privacy data, the following data will need to be info.list reconfiguration privacy to declare, or the program will not function properly.
Library, Motion, CallKit, Speech Recognition, SiriKit, TV Provider.
Configuration in Info.plist:
Attention:
- The string that follows is displayed in the description when the popup user allows it.
- The names of these keys already have auto-completion in Xcode 8.
- after configuration, remember to first Clear Oh
Here are the privacy rights and related settings
Note that Info.plist does not add the corresponding field, access to the album, Address book, while adding, the end of the tail does not have spaces
Warning:
Recently there are small partners to use Xcode 8 package upload app, local authentication and IPA upload are normal. However, the build version of itunes Connect backstage has not come out, the mobile app side itunes Connect received the push notification prompt "Your app has changed to invalid binary" and Apple sent your account email "Th Is 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 u SES this data. "
IOS 10 has asked us to add a description of the permission request, such as when you debug your contacts and albums, and you can see that the program crashes when you request the appropriate permissions. Plus a permission description, but if the description string is empty, debugging works fine, but it raises the problem that the package above is invalid. "All still need a specific descriptive information".
Tips: You develop a small partner can install a mobile phone-side itunes Connect, to facilitate timely receipt of relevant audit progress, while the mailbox set up the development of the mailbox, in time to receive Apple email to developers
We need to open the Info.plist file to add a description of the appropriate permissions, or the program will crash on IOS10. Your project access to private data, such as: Cameras, albums, contacts, etc., in the Xcode8 to open the compilation, all will be crash, the console will output the following such a log:
Specific as
022.png
- Permissions Configuration Info.plist File
02.png
- Microphone Permissions: Privacy-microphone usage Description Do you want to allow this app to use your microphone?
- Camera permissions: Privacy-camera usage Description Do you want to allow this app to use your camera?
- Album Permissions: Privacy-photo library Usage Description Do you want to allow this app to access your media library? Address Book permissions: privacy-contacts Usage Description Do you want to allow this app to access your contacts?
- Bluetooth permissions: Privacy-bluetooth Peripheral usage Description Do you Xu Yun this app to use Bluetooth?
- Voice to text permissions: Privacy-speech recognition usage Description allow this app to use speech recognition?
- Calendar permissions: Privacy-calendars usage Description Do you want to allow this app to use the calendar?
- Location permissions: Privacy-location when on use Usage Description we need to get relevant data about you from your location
- Location rights: Privacy-location always Usage Description We need to get data about you from your location
The positioning needs to be written so as to prevent the shelves from being rejected.
Select the current target in Xcode, select capabilities, find background Modes, open it, select the corresponding permission in the
ios10-configuration Get Privacy Data permission statement