salma209
salma209

Reputation: 189

in Info.plist , I have already added NSSpeechRecognitionUsageDescription with string. but still showing same error

In Info.plist I have already added NSSpeechRecognitionUsageDescription with string. But it still shows the same error:

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

How to solve this?

Upvotes: 2

Views: 10589

Answers (6)

Hu Xixi
Hu Xixi

Reputation: 2147

For the latest version of Xcode15+, the following solution works for me: enter image description here

Select the Project in the leftmost xCode pane > select the target > select the Info tab ... add it under Custom iOS Target properties using the + sign.

Reference: https://forums.developer.apple.com/forums/thread/742135

Upvotes: 0

Karan Mehta
Karan Mehta

Reputation: 1

I have solved the same issue make sure you put your key and string on the root level of plist file

Upvotes: 0

Klaus Busse
Klaus Busse

Reputation: 159

I just got rid of the exact same error by asking for microphone access, i.e. adding the NSMicrophoneUsageDescription to the plist.

Sounds like an Apple bug to me, but hope it helps!

Upvotes: 0

Naqeeb
Naqeeb

Reputation: 1421

if you are using App test and App UItest then there would be multple plist files in your project just make it sure you are adding description in right plist which is inside your project folder.

enter image description here

circled one plist is right one which is in your project.

Upvotes: 2

Dipak
Dipak

Reputation: 2433

I was facing same issue, after adding NSSpeechRecognitionUsageDescription key app was crashing. In my project I have two .plist files. I was adding key on wrong plist file. Make sure you are adding key in correct .plist.

Upvotes: 1

Tiago Couto
Tiago Couto

Reputation: 351

Open the info.plist as source code and then add the code:

<key>NSSpeechRecognitionUsageDescription</key>
<string>recognize speech</string>

Upvotes: 3

Related Questions