Recently downloaded a few demo, always a run on the collapse, see the crash log, there are several because the permissions are not set in the Plist, and now iOS 10 began to more strict privacy rights, such as the need to use privacy rights in the project's Info.plist file to declare, If you do not declare that your application crashes when you call privacy permissions, such as a camera
Offline packaging users need to manually add permissions to the Info.plist file of the packaged project
Key can be obtained from the following table, value is the box prompt text user can be arbitrarily added, type string
Permission Name |
Key Value |
Contacts |
Nscontactsusagedescription |
Microphone |
Nsmicrophoneusagedescription |
Album |
Nsphotolibraryusagedescription |
Camera |
Nscamerausagedescription |
Continuous acquisition of geographic location |
Nslocationalwaysusagedescription |
Get a location when you use it |
Nslocationwheninuseusagedescription |
Bluetooth |
Nsbluetoothperipheralusagedescription |
Voice to text |
Nsspeechrecognitionusagedescription |
Calendar |
Nscalendarsusagedescription |
IOS10 Related privacy settings,