iOS10在使用語(yǔ)音講話(huà)的時(shí)候發(fā)生了crash,報(bào)以下錯(cuò)誤
[access] 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.
這是因?yàn)樵趇OS10之后,我們?cè)谑褂孟到y(tǒng)的功能時(shí)必須要添加權(quán)限描述,否則就會(huì)出現(xiàn)crash。
解決方法:

如圖所示,在info.plist文件里面添加相應(yīng)的權(quán)限描述就可以了。