Victor Leung
Victor Leung
BlogFlower shop

Fix iOS 10 permission crashes error

October 08, 2016

I am developing an app with request access to user’s microphone. It was working fine with iOS 9, but since upgrade to iOS 10, it terminates with error message shown in the terminal:

> This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.
> (lldb)

To solve the problem, edit the Info.plist file as source code and add the following:

    <string>Some microphone description whatever you want</string>

For your reference, in case you need access to user’s camera, use the follow:

    <string>Some kind of camera request description</string>

Or request for contacts access for your reference.

    <string>This app request access for your contacts</string>

Happy coding!

About Victor Leung

Software development professional with expertise in application architecture, cloud solutions deployment, and financial products development. Possess a Master's degree in Computer Science and an MBA in Finance. Highly skilled in AWS (Certified Solutions Architect Professional, Developer and SysOps Administrator), GCP (Professional Cloud Architect), Microsoft Azure, Kubernetes(CKA, CKAD, CKS, KCNA), and Scrum(PSM, PSPO) methodologies.

Happy to connect

Continuous improvement

Copyright © 2023.