简体   繁体   中英

This app has crashed because it attempted to access privacy-sensitive data

I have added privacy settings in info.plist still it crashes. I don't why.

这是我的plist屏幕截图。

It says:

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.

Please note that I have already tried re-installing app. I am using iOS 10 Device no simulator.

You can try to reset the simulator and run again. It will work.

Delete NSMicrophoneUsageDescription from plist then run your application in device. Then delete the application from device. then add NSMicrophoneUsageDescription in plist and give description to it(don't keep it empty, write some description!) and install again in device!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM