問題:
Using iOS 10.0
last beta.使用iOS 10.0
最後一個測試版。 I had tried to use Camera to scan barcode in my app, and it crashed with this runtime 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 NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.應用程序的 Info.plist 必須包含一個 NSCameraUsageDescription 鍵和一個字符串值,向用戶解釋應用程序如何使用這些數據。
Put this key into the plist, but it still crashed?把這個key放進plist,還是崩潰?
解決方案:
參考一: https://en.stackoom.com/question/2fapL參考二: https://stackoom.com/question/2fapL