The mobile phone upgraded iOS10 Beta, and then installed an IPA package with the project under development, and found that clicking on the access permission directly crash, and output some information on the console:
This app had crashed because it attempted to access privacy-sensitive data without a usage description. The app ' s info.plist must contain an nscontactsusagedescription key with a string value explaining to the user how the app uses this data.
It means: You need to add a "nscontactsusagedescription" Key,value to the Info.plist file to add a description.
1, locate the Info.plist file in the project, right click on an open as, open as source Code
2, copy the following value and Key,key must not be wrong, value seemingly can be filled in casually
Camera Permission Description:
<key>NSCameraUsageDescription</key><string>cameraDesciption</string>
Correspondence Record:
<key>NSContactsUsageDescription</key><string>contactsDesciption</string>
Microphone:
<key>NSMicrophoneUsageDescription</key><string>microphoneDesciption</string>
Camera:
<key>NSPhotoLibraryUsageDescription</key><string>photoLibraryDesciption</string>
Eg: other permission description, the debug console will have output, add it yourself OK
3, copy on the Info.plist file, and then save it, such as:
The form of Source Code:
20160614172110952.jpeg
The presentation of the property List:
20160614172211047.jpeg
After the 4,clean, the operation is OK.
IOS10 Permissions Crash issue