swift 訪問音頻問題

問題:

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>
    
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章