問題:
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)
解決:
找到info.plist文件。sourcecode打開,添加如下
<key>NSPhotoLibraryUsageDescription</key>
<string>此 App 需要您的同意才能讀取媒體資料庫</string>
<!-- <key>NSCameraUsageDescription</key>-->
<!-- <string>cameraDesciption</string>-->
<!-- <key>NSContactsUsageDescription</key>-->
<!-- <string>contactsDesciption</string>-->
<key>NSMicrophoneUsageDescription</key>
<string>microphoneDesciption</string>